[media] rc: Deletion of unnecessary checks before two function calls
authorMarkus Elfring <elfring@users.sourceforge.net>
Thu, 20 Nov 2014 12:01:32 +0000 (09:01 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 25 Nov 2014 15:30:38 +0000 (13:30 -0200)
commit3dd94f00f07f013259dc221d6307ef699661f7ea
tree840040d130ddf93ad9604cf63c632f77c586c6d5
parent8f1aeedf78f5528a4471b019a39952aeb52dfa5b
[media] rc: Deletion of unnecessary checks before two function calls

The functions input_free_device() and rc_close() test whether their argument
is NULL and then return immediately. Thus the test around the call
is not needed.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/rc/lirc_dev.c
drivers/media/rc/rc-main.c