From: Daeseok Youn Date: Wed, 2 Apr 2014 09:49:03 +0000 (-0300) Subject: [media] staging: lirc: remove redundant NULL check in unregister_from_lirc() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=e9035152d72d010359383978c1126b5f8d93de5f;p=linux-beck.git [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 --- 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;