Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

[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
Loading
Loading
Loading
Loading
+0 −6
Original line number Original line Diff line number Diff line
@@ -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;