summaryrefslogtreecommitdiffstats
path: root/drivers/staging
diff options
context:
space:
mode:
authorDaeseok Youn <daeseok.youn@gmail.com>2014-04-02 06:49:03 -0300
committerMauro Carvalho Chehab <m.chehab@samsung.com>2014-07-23 19:52:42 -0300
commite9035152d72d010359383978c1126b5f8d93de5f (patch)
treea0690100aabc04033d1ec3eb777007b405b667c8 /drivers/staging
parenteb9da073bd002f2968c84129a5c49625911a3199 (diff)
downloadop-kernel-dev-e9035152d72d010359383978c1126b5f8d93de5f.zip
op-kernel-dev-e9035152d72d010359383978c1126b5f8d93de5f.tar.gz
[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>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/media/lirc/lirc_igorplugusb.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/staging/media/lirc/lirc_igorplugusb.c b/drivers/staging/media/lirc/lirc_igorplugusb.c
index 44b0d07..431d1e8 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;
OpenPOWER on IntegriCloud