aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/i2c
diff options
context:
space:
mode:
authorAlexander Stein <alexander.stein@systec-electronic.com>2012-03-01 07:41:25 -0500
committerWolfram Sang <w.sang@pengutronix.de>2012-03-07 13:26:22 -0500
commitbbceeee82ef55c11db0161f4078edd79290e3bcf (patch)
treeeffbc7d16d56a1f2d57f0ad0f692d17a80a66035 /drivers/i2c
parent0836c80901565e8549e17cbad6933ab7e48ef6b2 (diff)
i2c-eg20t: Remove write-only variables
Signed-off-by: Alexander Stein <alexander.stein@systec-electronic.com> Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Diffstat (limited to 'drivers/i2c')
-rw-r--r--drivers/i2c/busses/i2c-eg20t.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/i2c/busses/i2c-eg20t.c b/drivers/i2c/busses/i2c-eg20t.c
index 1eb60ca055a3..f086131cb1c7 100644
--- a/drivers/i2c/busses/i2c-eg20t.c
+++ b/drivers/i2c/busses/i2c-eg20t.c
@@ -784,8 +784,6 @@ static s32 pch_i2c_xfer(struct i2c_adapter *i2c_adap,
784 struct i2c_msg *pmsg; 784 struct i2c_msg *pmsg;
785 u32 i = 0; 785 u32 i = 0;
786 u32 status; 786 u32 status;
787 u32 msglen;
788 u32 subaddrlen;
789 s32 ret; 787 s32 ret;
790 788
791 struct i2c_algo_pch_data *adap = i2c_adap->algo_data; 789 struct i2c_algo_pch_data *adap = i2c_adap->algo_data;
@@ -810,12 +808,6 @@ static s32 pch_i2c_xfer(struct i2c_adapter *i2c_adap,
810 status = pmsg->flags; 808 status = pmsg->flags;
811 pch_dbg(adap, 809 pch_dbg(adap,
812 "After invoking I2C_MODE_SEL :flag= 0x%x\n", status); 810 "After invoking I2C_MODE_SEL :flag= 0x%x\n", status);
813 /* calculate sub address length and message length */
814 /* these are applicable only for buffer mode */
815 subaddrlen = pmsg->buf[0];
816 /* calculate actual message length excluding
817 * the sub address fields */
818 msglen = (pmsg->len) - (subaddrlen + 1);
819 811
820 if ((status & (I2C_M_RD)) != false) { 812 if ((status & (I2C_M_RD)) != false) {
821 ret = pch_i2c_readbytes(i2c_adap, pmsg, (i + 1 == num), 813 ret = pch_i2c_readbytes(i2c_adap, pmsg, (i + 1 == num),