summaryrefslogtreecommitdiff
path: root/drivers/media/usb/msi2500
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <m.chehab@samsung.com>2014-09-03 23:19:29 +0400
committerMauro Carvalho Chehab <m.chehab@samsung.com>2014-09-04 00:59:23 +0400
commitad7b8c0227ef18b29256e063d788e206c1466ac2 (patch)
tree0273d7ca25d6da62c1e563617987cb5e7cf3beea /drivers/media/usb/msi2500
parent61f6a0569c6ce563accb8f415373756febe62752 (diff)
downloadlinux-ad7b8c0227ef18b29256e063d788e206c1466ac2.tar.xz
[media] msi2500: simplify boolean tests
Instead of using if (foo == false), just use if (!foo). That allows a faster mental parsing when analyzing the code. Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media/usb/msi2500')
-rw-r--r--drivers/media/usb/msi2500/msi2500.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/usb/msi2500/msi2500.c b/drivers/media/usb/msi2500/msi2500.c
index 71e0960b46c0..e980aaa47b7c 100644
--- a/drivers/media/usb/msi2500/msi2500.c
+++ b/drivers/media/usb/msi2500/msi2500.c
@@ -1212,7 +1212,7 @@ static int msi2500_probe(struct usb_interface *intf,
s->pixelformat = formats[0].pixelformat;
s->buffersize = formats[0].buffersize;
s->num_formats = NUM_FORMATS;
- if (msi2500_emulated_fmt == false)
+ if (!msi2500_emulated_fmt)
s->num_formats -= 2;
/* Init videobuf2 queue structure */