提交 e9035152 编写于 作者: D Daeseok Youn 提交者: 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: NDaeseok Youn <daeseok.youn@gmail.com>
Reviewed-by: NDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
上级 eb9da073
......@@ -209,12 +209,6 @@ static int unregister_from_lirc(struct igorplug *ir)
struct lirc_driver *d;
int devnum;
if (!ir) {
dev_err(&ir->usbdev->dev,
"%s: called with NULL device struct!\n", __func__);
return -EINVAL;
}
devnum = ir->devnum;
d = ir->d;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册