staging: sm750fb: Removed unnecessary parentheses.
authorVarsha Rao <rvarsha016@gmail.com>
Sat, 4 Mar 2017 12:56:02 +0000 (18:26 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Mar 2017 18:06:36 +0000 (19:06 +0100)
Removed parentheses on the right hand side of assignment, as they are
not required. The following coccinelle script was used to fix this
issue:

@@
local idexpression id;
expression e;
@@

id =
-(
e
-)

Signed-off-by: Varsha Rao <rvarsha016@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/sm750fb/ddk750_chip.c
drivers/staging/sm750fb/ddk750_hwi2c.c
drivers/staging/sm750fb/sm750_accel.c
drivers/staging/sm750fb/sm750_cursor.c

index 9e49298103bb7aa5f470f2f2a5077d44020ce87e..5e4bfb601cea7b5c4301873f5abb36baccd5a5c8 100644 (file)
@@ -352,7 +352,7 @@ unsigned int sm750_calc_pll_value(unsigned int request_orig, struct pll_value *p
                RN = N * request;
                quo = RN / input;
                rem = RN % input;/* rem always small than 14318181 */
-               fl_quo = (rem * 10000 / input);
+               fl_quo = rem * 10000 / input;
 
                for (d = max_d; d >= 0; d--) {
                        X = BIT(d);
index 68716ef7cb06448b8c3209a81bca92b9ef4eb6db..fe814e4881f97c1714b177bdf086ac592590eb74 100644 (file)
@@ -217,7 +217,7 @@ unsigned char sm750_hw_i2c_read_reg(
        unsigned char reg
 )
 {
-       unsigned char value = (0xFF);
+       unsigned char value = 0xFF;
 
        if (hw_i2c_write_data(addr, 1, &reg) == 1)
                hw_i2c_read_data(addr, 1, &value);
index 9548863a3060306d706831094a909be7537bbec4..6db9b902157a07efb6fade8dddcd28de8cc2d0cf 100644 (file)
@@ -212,7 +212,7 @@ unsigned int rop2)   /* ROP value */
                sy += height - 1;
                dx += width - 1;
                dy += height - 1;
-               opSign = (-1);
+               opSign = -1;
        }
 
        /*
index aa232c31b3120695148a944e77f33aa128464815..612e9ab9d5694e744050ddceaa8f9a43df7a624a 100644 (file)
@@ -70,8 +70,8 @@ void sm750_hw_cursor_setPos(struct lynx_cursor *cursor,
 {
        u32 reg;
 
-       reg = (((y << HWC_LOCATION_Y_SHIFT) & HWC_LOCATION_Y_MASK) |
-               (x & HWC_LOCATION_X_MASK));
+       reg = ((y << HWC_LOCATION_Y_SHIFT) & HWC_LOCATION_Y_MASK) |
+              (x & HWC_LOCATION_X_MASK);
        poke32(HWC_LOCATION, reg);
 }
 void sm750_hw_cursor_setColor(struct lynx_cursor *cursor,