]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[media] staging: lirc: remove redundant NULL check in unregister_from_lirc()
authorDaeseok Youn <daeseok.youn@gmail.com>
Wed, 2 Apr 2014 09:49:03 +0000 (06:49 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Wed, 23 Jul 2014 22:52:42 +0000 (19:52 -0300)
"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>
drivers/staging/media/lirc/lirc_igorplugusb.c

index 44b0d0766084e06440ae1adc97b2da14e2b0ac5f..431d1e86ebf992c6c42b6fbb66a73f8def0d4d92 100644 (file)
@@ -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;