mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 14:19:09 -04:00
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>
This commit is contained in:
parent
9158d33a5d
commit
ff466a5bc2
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue