summaryrefslogtreecommitdiff
path: root/drivers/staging/most
diff options
context:
space:
mode:
authorChristian Gromm <christian.gromm@microchip.com>2015-10-15 13:28:54 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-10-16 23:09:41 -0700
commitff466a5bc26af4f2bed11cd6adf625c6e57e0242 (patch)
tree95876c108a1dfa988bd05efcfa2c9c8e3e177185 /drivers/staging/most
parent9158d33a5d38d1d23717d31c1e5eb11a6ebc982e (diff)
staging: most: remove constants from comparisons
This patch removes constants from comparisons and fixes checkpatch warnings about constants being put in the wrong place inside a comparison. Signed-off-by: Christian Gromm <christian.gromm@microchip.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/most')
-rw-r--r--drivers/staging/most/aim-cdev/cdev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/most/aim-cdev/cdev.c b/drivers/staging/most/aim-cdev/cdev.c
index 212a667820df..49411b722f19 100644
--- a/drivers/staging/most/aim-cdev/cdev.c
+++ b/drivers/staging/most/aim-cdev/cdev.c
@@ -134,7 +134,7 @@ static int aim_close(struct inode *inode, struct file *filp)
}
mutex_unlock(&channel->io_mutex);
- while (0 != kfifo_out((struct kfifo *)&channel->fifo, &mbo, 1))
+ while (kfifo_out((struct kfifo *)&channel->fifo, &mbo, 1))
most_put_mbo(mbo);
if (channel->keep_mbo)
most_put_mbo(channel->stacked_mbo);
@@ -232,7 +232,7 @@ aim_read(struct file *filp, char __user *buf, size_t count, loff_t *offset)
channel->keep_mbo = false;
goto start_copy;
}
- while ((0 == kfifo_out(&channel->fifo, &mbo, 1))
+ while ((!kfifo_out(&channel->fifo, &mbo, 1))
&& (channel->dev)) {
if (filp->f_flags & O_NONBLOCK)
return -EAGAIN;