From e9035152d72d010359383978c1126b5f8d93de5f Mon Sep 17 00:00:00 2001 From: Daeseok Youn Date: Wed, 2 Apr 2014 06:49:03 -0300 Subject: [PATCH] [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 Reviewed-by: Dan Carpenter Signed-off-by: Mauro Carvalho Chehab --- drivers/staging/media/lirc/lirc_igorplugusb.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/staging/media/lirc/lirc_igorplugusb.c b/drivers/staging/media/lirc/lirc_igorplugusb.c index 44b0d0766084..431d1e86ebf9 100644 --- a/drivers/staging/media/lirc/lirc_igorplugusb.c +++ b/drivers/staging/media/lirc/lirc_igorplugusb.c @@ -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; -- 2.20.1