summaryrefslogtreecommitdiffstats
path: root/drivers/staging/sm750fb/ddk750_hwi2c.c
diff options
context:
space:
mode:
authorVarsha Rao <rvarsha016@gmail.com>2017-03-04 18:26:02 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-03-09 19:06:36 +0100
commit4e1c89dec89ac2b94faf2b1b39197086d0a6352d (patch)
tree85a49b6de817119c1cb65cecbc610829ab50245c /drivers/staging/sm750fb/ddk750_hwi2c.c
parente5619b1350946d7aabe8ed6b0210458a7057dd24 (diff)
downloadlinux-stable-4e1c89dec89ac2b94faf2b1b39197086d0a6352d.tar.gz
linux-stable-4e1c89dec89ac2b94faf2b1b39197086d0a6352d.tar.bz2
linux-stable-4e1c89dec89ac2b94faf2b1b39197086d0a6352d.zip
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 <rvarsha016@gmail.com> Acked-by: Julia Lawall <julia.lawall@lip6.fr> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/sm750fb/ddk750_hwi2c.c')
-rw-r--r--drivers/staging/sm750fb/ddk750_hwi2c.c2
1 files changed, 1 insertions, 1 deletions
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, &reg) == 1)
hw_i2c_read_data(addr, 1, &value);