diff options
author | Sudip Mukherjee <sudipm.mukherjee@gmail.com> | 2015-08-18 20:48:21 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-09-12 18:24:30 -0700 |
commit | 51d6859f2352ef420f8a45abaac0391acf573730 (patch) | |
tree | 9842bd3e96c562f0f7f8b1abf842e790f5c60db1 /drivers | |
parent | 0c74210509049f3391576a45acb1174e2454588c (diff) | |
download | linux-51d6859f2352ef420f8a45abaac0391acf573730.tar.bz2 |
staging: most: bool comparison style
Mentioning true or false in the if comparison is error prone and also
not according to the coding style.
Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/most/aim-cdev/cdev.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/most/aim-cdev/cdev.c b/drivers/staging/most/aim-cdev/cdev.c index 0a13d8d0fa39..a0cdd26bf303 100644 --- a/drivers/staging/most/aim-cdev/cdev.c +++ b/drivers/staging/most/aim-cdev/cdev.c @@ -133,7 +133,7 @@ static int aim_close(struct inode *inode, struct file *filp) while (0 != kfifo_out((struct kfifo *)&channel->fifo, &mbo, 1)) most_put_mbo(mbo); - if (channel->keep_mbo == true) + if (channel->keep_mbo) most_put_mbo(channel->stacked_mbo); ret = most_stop_channel(channel->iface, channel->channel_id); atomic_dec(&channel->access_ref); @@ -224,7 +224,7 @@ aim_read(struct file *filp, char __user *buf, size_t count, loff_t *offset) struct mbo *mbo; struct aim_channel *channel = filp->private_data; - if (channel->keep_mbo == true) { + if (channel->keep_mbo) { mbo = channel->stacked_mbo; channel->keep_mbo = false; goto start_copy; @@ -259,7 +259,7 @@ start_copy: retval = not_copied ? proc_len - not_copied : proc_len; - if (channel->keep_mbo == true) { + if (channel->keep_mbo) { channel->mbo_offs = retval; channel->stacked_mbo = mbo; } else { |