staging: media: imx: remove parentheses
authorKaaira Gupta <kgupta@es.iitr.ac.in>
Fri, 13 Mar 2020 21:54:05 +0000 (03:24 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 17 Mar 2020 13:14:51 +0000 (14:14 +0100)
Remove unnecessary parentheses around a binary OR in file
imx7-mipi-csis.c. Check reported by coccinelle.

Signed-off-by: Kaaira Gupta <kgupta@es.iitr.ac.in>
Reviewed-by: Stefano Brivio <sbrivio@redhat.com>
Link: https://lore.kernel.org/r/20200313215406.2485-4-kgupta@es.iitr.ac.in
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/media/imx/imx7-mipi-csis.c

index 383abecb3bec0a0f3ed8eb7ba26f0e80afe566ef..fff676a549909290ef4e38a7cc637c25c0262f4c 100644 (file)
@@ -404,7 +404,7 @@ static void mipi_csis_set_hsync_settle(struct csi_state *state, int hs_settle)
 {
        u32 val = mipi_csis_read(state, MIPI_CSIS_DPHYCTRL);
 
-       val = ((val & ~MIPI_CSIS_DPHYCTRL_HSS_MASK) | (hs_settle << 24));
+       val = (val & ~MIPI_CSIS_DPHYCTRL_HSS_MASK) | (hs_settle << 24);
 
        mipi_csis_write(state, MIPI_CSIS_DPHYCTRL, val);
 }