mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-23 20:53:53 +08:00
[media] staging: lirc: remove redundant NULL check in unregister_from_lirc()
"ir" is already checked before calling unregister_from_lirc(). Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com> Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
This commit is contained in:
parent
eb9da073bd
commit
e9035152d7
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user