summaryrefslogtreecommitdiffstats
path: root/drivers/i2c/busses/i2c-pnx.c
diff options
context:
space:
mode:
authorWolfram Sang <wsa@the-dreams.de>2015-10-25 16:20:59 +0100
committerWolfram Sang <wsa@the-dreams.de>2015-10-30 12:35:58 +0100
commit77133e1c0352b42af8017d7618dcf8e49452613b (patch)
tree547cdfddbfab4a00201e03d579eeef3e89150994 /drivers/i2c/busses/i2c-pnx.c
parent14cbc1d0e29667b0c01c9202fcf8ac31893f7daa (diff)
downloadblackbird-op-linux-77133e1c0352b42af8017d7618dcf8e49452613b.tar.gz
blackbird-op-linux-77133e1c0352b42af8017d7618dcf8e49452613b.zip
i2c: pnx: remove superfluous assignment
smatch rightfully says: drivers/i2c/busses/i2c-pnx.c:499 i2c_pnx_xfer warn: unused return: stat = ioread32() Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/i2c/busses/i2c-pnx.c')
-rw-r--r--drivers/i2c/busses/i2c-pnx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-pnx.c b/drivers/i2c/busses/i2c-pnx.c
index cdbf6320cb90..1b8bf368be0c 100644
--- a/drivers/i2c/busses/i2c-pnx.c
+++ b/drivers/i2c/busses/i2c-pnx.c
@@ -496,7 +496,7 @@ i2c_pnx_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num)
struct i2c_msg *pmsg;
int rc = 0, completed = 0, i;
struct i2c_pnx_algo_data *alg_data = adap->algo_data;
- u32 stat = ioread32(I2C_REG_STS(alg_data));
+ u32 stat;
dev_dbg(&alg_data->adapter.dev,
"%s(): entering: %d messages, stat = %04x.\n",
OpenPOWER on IntegriCloud