Commit b3185ab5 authored by Wolfram Sang's avatar Wolfram Sang Committed by Mauro Carvalho Chehab

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: default avatarWolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: default avatarSean Young <sean@mess.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
parent ab1cbdf1
...@@ -916,16 +916,13 @@ static int ir_remove(struct i2c_client *client) ...@@ -916,16 +916,13 @@ static int ir_remove(struct i2c_client *client)
{ {
struct IR_i2c *ir = i2c_get_clientdata(client); struct IR_i2c *ir = i2c_get_clientdata(client);
/* kill outstanding polls */
cancel_delayed_work_sync(&ir->work); cancel_delayed_work_sync(&ir->work);
if (ir->tx_c) if (ir->tx_c)
i2c_unregister_device(ir->tx_c); i2c_unregister_device(ir->tx_c);
/* unregister device */
rc_unregister_device(ir->rc); rc_unregister_device(ir->rc);
/* free memory */
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment