diff options
author | Wolfram Sang <wsa@the-dreams.de> | 2014-01-04 22:21:33 +0100 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2014-01-09 22:18:33 +0100 |
commit | 4868ca387debaf5c19061a18624956233886ab01 (patch) | |
tree | c0d8459cebc673fd1c8468b05e58af0ffa6bb1d0 /drivers/i2c | |
parent | i2c: xilinx: Use devm_* functions (diff) | |
download | linux-4868ca387debaf5c19061a18624956233886ab01.tar.xz linux-4868ca387debaf5c19061a18624956233886ab01.zip |
i2c: viperboard: remove superfluous assignment
cppcheck rightfully says:
drivers/i2c/busses/i2c-viperboard.c:169: style: Variable 'bytes_xfer' is assigned a value that is never used.
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Acked-by: Lars Poeschel <poeschel@lemonage.de>
Diffstat (limited to 'drivers/i2c')
-rw-r--r-- | drivers/i2c/busses/i2c-viperboard.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/i2c/busses/i2c-viperboard.c b/drivers/i2c/busses/i2c-viperboard.c index 6976e1ce3a65..7533fa34d737 100644 --- a/drivers/i2c/busses/i2c-viperboard.c +++ b/drivers/i2c/busses/i2c-viperboard.c @@ -118,8 +118,7 @@ static int vprbrd_i2c_addr(struct usb_device *usb_dev, static int vprbrd_i2c_read(struct vprbrd *vb, struct i2c_msg *msg) { int ret; - u16 remain_len, bytes_xfer, len1, len2, - start = 0x0000; + u16 remain_len, len1, len2, start = 0x0000; struct vprbrd_i2c_read_msg *rmsg = (struct vprbrd_i2c_read_msg *)vb->buf; @@ -166,7 +165,6 @@ static int vprbrd_i2c_read(struct vprbrd *vb, struct i2c_msg *msg) rmsg->header.len3 = remain_len - 512; rmsg->header.len4 = 0x00; rmsg->header.len5 = 0x00; - bytes_xfer = remain_len; remain_len = 0; } else if (remain_len <= 1022) { len1 = 512; |