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:
Родитель
269da10b14
Коммит
955a50846f
|
@ -383,8 +383,9 @@ static ssize_t axis_fifo_read(struct file *f, char __user *buf,
|
|||
mutex_lock(&fifo->read_lock);
|
||||
ret = wait_event_interruptible_timeout(fifo->read_queue,
|
||||
ioread32(fifo->base_addr + XLLF_RDFO_OFFSET),
|
||||
(read_timeout >= 0) ? msecs_to_jiffies(read_timeout) :
|
||||
MAX_SCHEDULE_TIMEOUT);
|
||||
(read_timeout >= 0) ?
|
||||
msecs_to_jiffies(read_timeout) :
|
||||
MAX_SCHEDULE_TIMEOUT);
|
||||
|
||||
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);
|
||||
ret = wait_event_interruptible_timeout(fifo->write_queue,
|
||||
ioread32(fifo->base_addr + XLLF_TDFV_OFFSET)
|
||||
>= words_to_write,
|
||||
(write_timeout >= 0) ? msecs_to_jiffies(write_timeout) :
|
||||
MAX_SCHEDULE_TIMEOUT);
|
||||
>= words_to_write,
|
||||
(write_timeout >= 0) ?
|
||||
msecs_to_jiffies(write_timeout) :
|
||||
MAX_SCHEDULE_TIMEOUT);
|
||||
|
||||
if (ret <= 0) {
|
||||
if (ret == 0) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче