Commit 8c266d06 authored by Christophe JAILLET's avatar Christophe JAILLET Committed by Wolfram Sang
Browse files

i2c: xiic: Remove some dead code



wait_for_completion_timeout() never returns negative value.

Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: default avatarMichal Simek <michal.simek@amd.com>
Signed-off-by: default avatarWolfram Sang <wsa@kernel.org>
parent 6d8ffbe6
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -1174,10 +1174,6 @@ static int xiic_xfer(struct i2c_adapter *adap, struct i2c_msg *msgs, int num)
		i2c->rx_msg = NULL;
		i2c->nmsgs = 0;
		err = -ETIMEDOUT;
	} else if (err < 0) {	/* Completion error */
		i2c->tx_msg = NULL;
		i2c->rx_msg = NULL;
		i2c->nmsgs = 0;
	} else {
		err = (i2c->state == STATE_DONE) ? num : -EIO;
	}