i2c: mediatek: remove completion_done()
Completion_done() is useless when we don't use its return value, so we remove it. Signed-off-by: qii wang <qii.wang@mediatek.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
This commit is contained in:
parent
93caa0dab7
commit
0056a54b33
|
@ -642,8 +642,6 @@ static int mtk_i2c_do_transfer(struct mtk_i2c *i2c, struct i2c_msg *msgs,
|
||||||
return -ETIMEDOUT;
|
return -ETIMEDOUT;
|
||||||
}
|
}
|
||||||
|
|
||||||
completion_done(&i2c->msg_complete);
|
|
||||||
|
|
||||||
if (i2c->irq_stat & (I2C_HS_NACKERR | I2C_ACKERR)) {
|
if (i2c->irq_stat & (I2C_HS_NACKERR | I2C_ACKERR)) {
|
||||||
dev_dbg(i2c->dev, "addr: %x, transfer ACK error\n", msgs->addr);
|
dev_dbg(i2c->dev, "addr: %x, transfer ACK error\n", msgs->addr);
|
||||||
mtk_i2c_init_hw(i2c);
|
mtk_i2c_init_hw(i2c);
|
||||||
|
|
Loading…
Reference in New Issue