summaryrefslogtreecommitdiff
path: root/drivers/gpu/ipu-v3
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@freescale.com>2015-05-09 13:08:25 -0300
committerPhilipp Zabel <p.zabel@pengutronix.de>2015-10-30 17:13:47 +0100
commit6dd0d0e1ae7f3e129c6943cd351d47d194bde238 (patch)
treeeb6dd39b91834d027797217ff9b3f82cf3255240 /drivers/gpu/ipu-v3
parent25cb62b76430a91cc6195f902e61c2cb84ade622 (diff)
downloadlwn-6dd0d0e1ae7f3e129c6943cd351d47d194bde238.tar.gz
lwn-6dd0d0e1ae7f3e129c6943cd351d47d194bde238.zip
gpu: ipu-v3: ipu-csi: bool test doesn't need a comparison to false
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>
Diffstat (limited to 'drivers/gpu/ipu-v3')
-rw-r--r--drivers/gpu/ipu-v3/ipu-csi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/ipu-v3/ipu-csi.c b/drivers/gpu/ipu-v3/ipu-csi.c
index 752cdd2da89a..eec5adb3ed7b 100644
--- a/drivers/gpu/ipu-v3/ipu-csi.c
+++ b/drivers/gpu/ipu-v3/ipu-csi.c
@@ -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 {