staging: lirc: remove redundant NULL check in unregister_from_lirc()
Subsystems (2)
PATCH 1/1 staging: lirc: remove redundant NULL check in unregister_from_lirc()
"ir" is already checked before calling unregister_from_lirc().
Signed-off-by Daeseok Youn <[email protected]>
--- drivers/staging/media/lirc/lirc_igorplugusb.c | 6 ------ 1 files changed, 0 insertions(+), 6 deletions(-)
drivers/staging/media/lirc/lirc_igorplugusb.c +0 -6
@@ -222,12 +222,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;
Signature · 1 line
1.7.4.4
Quoted 3 lines · Daeseok Youn
"ir" is already checked before calling
unregister_from_lirc().
Reviewed-by Dan Carpenter <[email protected]>
regards,
dan carpenter