diff options
author | qii wang <qii.wang@mediatek.com> | 2019-01-21 08:59:31 +0100 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2019-02-05 14:11:46 +0100 |
commit | 0056a54b335335f0231a80ecf81d03095037437e (patch) | |
tree | f67e83928a0b272d71f005ba37c9d009b47d89a6 /drivers/i2c | |
parent | i2c: mediatek: speeds is replaced by macros definitions (diff) | |
download | linux-0056a54b335335f0231a80ecf81d03095037437e.tar.xz linux-0056a54b335335f0231a80ecf81d03095037437e.zip |
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>
Diffstat (limited to 'drivers/i2c')
-rw-r--r-- | drivers/i2c/busses/i2c-mt65xx.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/i2c/busses/i2c-mt65xx.c b/drivers/i2c/busses/i2c-mt65xx.c index 7396449703a1..660de1ee68ed 100644 --- a/drivers/i2c/busses/i2c-mt65xx.c +++ b/drivers/i2c/busses/i2c-mt65xx.c @@ -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); |