i2c-highlander: remover superflous variable
authorWolfram Sang <w.sang@pengutronix.de>
Tue, 2 Feb 2010 12:03:31 +0000 (13:03 +0100)
committerBen Dooks <ben-linux@fluff.org>
Wed, 19 May 2010 23:19:01 +0000 (00:19 +0100)
commitb5c80bc5d70a1ce5b071ed06dd95292b9de46f95
treeb31d6cde6971b099e90d2fbffceb85b9f27158f6
parentf0ec9e20bab214f4a26e6fdaaf5c2a6b2f2640d7
i2c-highlander: remover superflous variable

When cppcheck found this flaw

[./i2c/busses/i2c-highlander.c:284]: (style) Warning - using char variable in bit operation

it was noted that the 'read'-variable could be simply removed as read_write can
only be 0 or 1 anyhow. So, we remove the flaw and simplify the code.

Reported-by: d binderman <dcb314@hotmail.com>
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Acked-by: Paul Mundt <lethal@linux-sh.org>
Acked-by: Jean Delvare <khali@linux-fr.org>
Cc: Ben Dooks <ben-linux@fluff.org>
drivers/i2c/busses/i2c-highlander.c