mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 10:00:17 +00:00
staging: axis-fifo: Fix parenthesis alignment
Fix 2 parenthesis alignment issues. Reported by checkpatch. Signed-off-by: John B. Wyatt IV <jbwyatt4@gmail.com> Link: https://lore.kernel.org/r/20200402015008.728612-1-jbwyatt4@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
269da10b14
commit
955a50846f
@@ -383,8 +383,9 @@ static ssize_t axis_fifo_read(struct file *f, char __user *buf,
|
|||||||
mutex_lock(&fifo->read_lock);
|
mutex_lock(&fifo->read_lock);
|
||||||
ret = wait_event_interruptible_timeout(fifo->read_queue,
|
ret = wait_event_interruptible_timeout(fifo->read_queue,
|
||||||
ioread32(fifo->base_addr + XLLF_RDFO_OFFSET),
|
ioread32(fifo->base_addr + XLLF_RDFO_OFFSET),
|
||||||
(read_timeout >= 0) ? msecs_to_jiffies(read_timeout) :
|
(read_timeout >= 0) ?
|
||||||
MAX_SCHEDULE_TIMEOUT);
|
msecs_to_jiffies(read_timeout) :
|
||||||
|
MAX_SCHEDULE_TIMEOUT);
|
||||||
|
|
||||||
if (ret <= 0) {
|
if (ret <= 0) {
|
||||||
if (ret == 0) {
|
if (ret == 0) {
|
||||||
@@ -525,9 +526,10 @@ static ssize_t axis_fifo_write(struct file *f, const char __user *buf,
|
|||||||
mutex_lock(&fifo->write_lock);
|
mutex_lock(&fifo->write_lock);
|
||||||
ret = wait_event_interruptible_timeout(fifo->write_queue,
|
ret = wait_event_interruptible_timeout(fifo->write_queue,
|
||||||
ioread32(fifo->base_addr + XLLF_TDFV_OFFSET)
|
ioread32(fifo->base_addr + XLLF_TDFV_OFFSET)
|
||||||
>= words_to_write,
|
>= words_to_write,
|
||||||
(write_timeout >= 0) ? msecs_to_jiffies(write_timeout) :
|
(write_timeout >= 0) ?
|
||||||
MAX_SCHEDULE_TIMEOUT);
|
msecs_to_jiffies(write_timeout) :
|
||||||
|
MAX_SCHEDULE_TIMEOUT);
|
||||||
|
|
||||||
if (ret <= 0) {
|
if (ret <= 0) {
|
||||||
if (ret == 0) {
|
if (ret == 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user