Skip to content

Commit bbceeee

Browse files
Alexander SteinWolfram Sang
authored andcommitted
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>
1 parent 0836c80 commit bbceeee

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

‎drivers/i2c/busses/i2c-eg20t.c‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -784,8 +784,6 @@ static s32 pch_i2c_xfer(struct i2c_adapter *i2c_adap,
784784
struct i2c_msg *pmsg;
785785
u32 i = 0;
786786
u32 status;
787-
u32 msglen;
788-
u32 subaddrlen;
789787
s32 ret;
790788

791789
struct i2c_algo_pch_data *adap = i2c_adap->algo_data;
@@ -810,12 +808,6 @@ static s32 pch_i2c_xfer(struct i2c_adapter *i2c_adap,
810808
status = pmsg->flags;
811809
pch_dbg(adap,
812810
"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);
819811

820812
if ((status & (I2C_M_RD)) != false) {
821813
ret = pch_i2c_readbytes(i2c_adap, pmsg, (i + 1 == num),

0 commit comments

Comments
 (0)