Commit 623d8002 authored by Christian Gromm's avatar Christian Gromm Committed by Greg Kroah-Hartman

staging: most: fix logical operator position

This patch puts logical continuations on the previous line to meet
coding style.
Signed-off-by: default avatarChristian Gromm <christian.gromm@microchip.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent df8da2e3
...@@ -88,8 +88,8 @@ static int aim_open(struct inode *inode, struct file *filp) ...@@ -88,8 +88,8 @@ static int aim_open(struct inode *inode, struct file *filp)
filp->private_data = channel; filp->private_data = channel;
if (((channel->cfg->direction == MOST_CH_RX) && if (((channel->cfg->direction == MOST_CH_RX) &&
((filp->f_flags & O_ACCMODE) != O_RDONLY)) ((filp->f_flags & O_ACCMODE) != O_RDONLY)) ||
|| ((channel->cfg->direction == MOST_CH_TX) && ((channel->cfg->direction == MOST_CH_TX) &&
((filp->f_flags & O_ACCMODE) != O_WRONLY))) { ((filp->f_flags & O_ACCMODE) != O_WRONLY))) {
pr_info("WARN: Access flags mismatch\n"); pr_info("WARN: Access flags mismatch\n");
return -EACCES; return -EACCES;
...@@ -233,8 +233,7 @@ aim_read(struct file *filp, char __user *buf, size_t count, loff_t *offset) ...@@ -233,8 +233,7 @@ aim_read(struct file *filp, char __user *buf, size_t count, loff_t *offset)
channel->keep_mbo = false; channel->keep_mbo = false;
goto start_copy; goto start_copy;
} }
while ((!kfifo_out(&channel->fifo, &mbo, 1)) while ((!kfifo_out(&channel->fifo, &mbo, 1)) && (channel->dev)) {
&& (channel->dev)) {
if (filp->f_flags & O_NONBLOCK) if (filp->f_flags & O_NONBLOCK)
return -EAGAIN; return -EAGAIN;
if (wait_event_interruptible(channel->wq, if (wait_event_interruptible(channel->wq,
......
...@@ -1184,8 +1184,8 @@ static int hdm_enqueue_thread(void *data) ...@@ -1184,8 +1184,8 @@ static int hdm_enqueue_thread(void *data)
while (likely(!kthread_should_stop())) { while (likely(!kthread_should_stop())) {
wait_event_interruptible(c->hdm_fifo_wq, wait_event_interruptible(c->hdm_fifo_wq,
(mbo = get_hdm_mbo(c)) (mbo = get_hdm_mbo(c)) ||
|| kthread_should_stop()); kthread_should_stop());
if (unlikely(!mbo)) if (unlikely(!mbo))
continue; continue;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment