Commit e9035152 authored by Daeseok Youn's avatar Daeseok Youn Committed by Mauro Carvalho Chehab

[media] staging: lirc: remove redundant NULL check in unregister_from_lirc()

"ir" is already checked before calling unregister_from_lirc().
Signed-off-by: default avatarDaeseok Youn <daeseok.youn@gmail.com>
Reviewed-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
parent eb9da073
...@@ -209,12 +209,6 @@ static int unregister_from_lirc(struct igorplug *ir) ...@@ -209,12 +209,6 @@ static int unregister_from_lirc(struct igorplug *ir)
struct lirc_driver *d; struct lirc_driver *d;
int devnum; int devnum;
if (!ir) {
dev_err(&ir->usbdev->dev,
"%s: called with NULL device struct!\n", __func__);
return -EINVAL;
}
devnum = ir->devnum; devnum = ir->devnum;
d = ir->d; d = ir->d;
......
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