mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-06 19:07:52 +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:
parent
269da10b14
commit
955a50846f
1 changed files with 7 additions and 5 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue