]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
[media] msi2500: simplify boolean tests
authorMauro Carvalho Chehab <m.chehab@samsung.com>
Wed, 3 Sep 2014 19:19:29 +0000 (16:19 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Wed, 3 Sep 2014 20:59:23 +0000 (17:59 -0300)
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>
drivers/media/usb/msi2500/msi2500.c

index 71e0960b46c0cc48699c643635c27e14f251a9fe..e980aaa47b7c57c4cda024366a633abb8f451037 100644 (file)
@@ -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 */