projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d8ffbe
)
i2c: xiic: Remove some dead code
author
Christophe JAILLET
<christophe.jaillet@wanadoo.fr>
Wed, 15 Feb 2023 10:38:07 +0000
(11:38 +0100)
committer
Wolfram Sang
<wsa@kernel.org>
Fri, 17 Feb 2023 21:46:10 +0000
(22:46 +0100)
wait_for_completion_timeout() never returns negative value.
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Michal Simek <michal.simek@amd.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-xiic.c
patch
|
blob
|
history
diff --git
a/drivers/i2c/busses/i2c-xiic.c
b/drivers/i2c/busses/i2c-xiic.c
index 1e89e82707492a6fd2a178f89cad45396666cc5f..dbb792fc197ec88bd72d5de315f87aceab3c321a 100644
(file)
--- a/
drivers/i2c/busses/i2c-xiic.c
+++ b/
drivers/i2c/busses/i2c-xiic.c
@@
-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;
}