]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit2dd6b236da77d87dfec39fb7d0f69bd64454ca9f
tree840040d130ddf93ad9604cf63c632f77c586c6d5
parent9a4ebd56b2627a47a249677230a369c80494d198
[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