summaryrefslogtreecommitdiffstats
path: root/drivers/media/i2c/ir-kbd-i2c.c
diff options
context:
space:
mode:
authorWolfram Sang <wsa+renesas@sang-engineering.com>2019-07-30 19:55:55 +0200
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2019-08-04 11:34:30 +0200
commitb3185ab502749539872402b6e7198c5229ff20d6 (patch)
tree8831f62b1e93d0fc816141d151cdcf2dc4b1975c /drivers/media/i2c/ir-kbd-i2c.c
parentmedia: iguanair: add sanity checks (diff)
downloadlinux-b3185ab502749539872402b6e7198c5229ff20d6.tar.xz
linux-b3185ab502749539872402b6e7198c5229ff20d6.zip
media: ir-kbd-i2c: remove outdated comments
The "free memory" comment is obsolete since 2013 and the other ones explain the obvious. Just remove the comments. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: Sean Young <sean@mess.org> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media/i2c/ir-kbd-i2c.c')
-rw-r--r--drivers/media/i2c/ir-kbd-i2c.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/media/i2c/ir-kbd-i2c.c b/drivers/media/i2c/ir-kbd-i2c.c
index 876d7587a1da..96932779ca37 100644
--- a/drivers/media/i2c/ir-kbd-i2c.c
+++ b/drivers/media/i2c/ir-kbd-i2c.c
@@ -916,16 +916,13 @@ static int ir_remove(struct i2c_client *client)
{
struct IR_i2c *ir = i2c_get_clientdata(client);
- /* kill outstanding polls */
cancel_delayed_work_sync(&ir->work);
if (ir->tx_c)
i2c_unregister_device(ir->tx_c);
- /* unregister device */
rc_unregister_device(ir->rc);
- /* free memory */
return 0;
}