]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
gpu: ipu-v3: ipu-csi: bool test doesn't need a comparison to false
authorFabio Estevam <fabio.estevam@freescale.com>
Sat, 9 May 2015 16:08:25 +0000 (13:08 -0300)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Fri, 30 Oct 2015 16:13:47 +0000 (17:13 +0100)
Bool initializations should use true and false. Bool tests don't need
comparisons. Based on contributions from Joe Perches, Rusty Russell
and Bruce W Allan.

The semantic patch that makes this change is available
in scripts/coccinelle/misc/boolinit.cocci.

More information about semantic patching is available at
http://coccinelle.lip6.fr/

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/gpu/ipu-v3/ipu-csi.c

index 752cdd2da89a60bdc97911a15970e474c3d5775f..eec5adb3ed7b7ae704101f29717266296d81ec10 100644 (file)
@@ -538,7 +538,7 @@ void ipu_csi_set_test_generator(struct ipu_csi *csi, bool active,
 
        temp = ipu_csi_read(csi, CSI_TST_CTRL);
 
-       if (active == false) {
+       if (!active) {
                temp &= ~CSI_TEST_GEN_MODE_EN;
                ipu_csi_write(csi, temp, CSI_TST_CTRL);
        } else {