From: Varsha Rao Date: Sat, 4 Mar 2017 12:56:02 +0000 (+0530) Subject: staging: sm750fb: Removed unnecessary parentheses. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4e1c89dec89ac2b94faf2b1b39197086d0a6352d;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git staging: sm750fb: Removed unnecessary parentheses. 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 Acked-by: Julia Lawall Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/sm750fb/ddk750_chip.c b/drivers/staging/sm750fb/ddk750_chip.c index 9e49298103bb..5e4bfb601cea 100644 --- a/drivers/staging/sm750fb/ddk750_chip.c +++ b/drivers/staging/sm750fb/ddk750_chip.c @@ -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); diff --git a/drivers/staging/sm750fb/ddk750_hwi2c.c b/drivers/staging/sm750fb/ddk750_hwi2c.c index 68716ef7cb06..fe814e4881f9 100644 --- a/drivers/staging/sm750fb/ddk750_hwi2c.c +++ b/drivers/staging/sm750fb/ddk750_hwi2c.c @@ -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, ®) == 1) hw_i2c_read_data(addr, 1, &value); diff --git a/drivers/staging/sm750fb/sm750_accel.c b/drivers/staging/sm750fb/sm750_accel.c index 9548863a3060..6db9b902157a 100644 --- a/drivers/staging/sm750fb/sm750_accel.c +++ b/drivers/staging/sm750fb/sm750_accel.c @@ -212,7 +212,7 @@ unsigned int rop2) /* ROP value */ sy += height - 1; dx += width - 1; dy += height - 1; - opSign = (-1); + opSign = -1; } /* diff --git a/drivers/staging/sm750fb/sm750_cursor.c b/drivers/staging/sm750fb/sm750_cursor.c index aa232c31b312..612e9ab9d569 100644 --- a/drivers/staging/sm750fb/sm750_cursor.c +++ b/drivers/staging/sm750fb/sm750_cursor.c @@ -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,