Skip to content

Commit

Permalink
[media] staging: lirc: remove redundant NULL check in unregister_from…
Browse files Browse the repository at this point in the history
…_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>
  • Loading branch information
Daeseok Youn authored and Mauro Carvalho Chehab committed Jul 23, 2014
1 parent eb9da07 commit e903515
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions drivers/staging/media/lirc/lirc_igorplugusb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit e903515

Please sign in to comment.