i2c: mediatek: remove completion_done()
authorqii wang <qii.wang@mediatek.com>
Mon, 21 Jan 2019 07:59:31 +0000 (15:59 +0800)
committerWolfram Sang <wsa@the-dreams.de>
Tue, 5 Feb 2019 13:11:46 +0000 (14:11 +0100)
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>
drivers/i2c/busses/i2c-mt65xx.c

index 7396449..660de1e 100644 (file)
@@ -642,8 +642,6 @@ static int mtk_i2c_do_transfer(struct mtk_i2c *i2c, struct i2c_msg *msgs,
                return -ETIMEDOUT;
        }
 
-       completion_done(&i2c->msg_complete);
-
        if (i2c->irq_stat & (I2C_HS_NACKERR | I2C_ACKERR)) {
                dev_dbg(i2c->dev, "addr: %x, transfer ACK error\n", msgs->addr);
                mtk_i2c_init_hw(i2c);