diff options
author | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-09-03 21:19:29 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-09-03 22:59:23 +0200 |
commit | ad7b8c0227ef18b29256e063d788e206c1466ac2 (patch) | |
tree | 0273d7ca25d6da62c1e563617987cb5e7cf3beea /drivers/media/usb/msi2500 | |
parent | [media] af9005: use true/false for boolean vars (diff) | |
download | linux-ad7b8c0227ef18b29256e063d788e206c1466ac2.tar.xz linux-ad7b8c0227ef18b29256e063d788e206c1466ac2.zip |
[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.c | 2 |
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 */ |