]> git.baikalelectronics.ru Git - kernel.git/commit
[media] c8sectpfe: Delete unnecessary checks before two function calls
authorMarkus Elfring <elfring@users.sourceforge.net>
Thu, 5 Nov 2015 17:55:19 +0000 (15:55 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 19 Nov 2015 12:09:56 +0000 (10:09 -0200)
commit6fb848b47b890a76e38a7a793cd0f9170a690e33
tree39495429a4e35d5f34e28c7fed0127c66c38d3a2
parent764f75d04b057e633b658fdd280351189fd3fadd
[media] c8sectpfe: Delete unnecessary checks before two function calls

The functions i2c_put_adapter() and module_put() test whether their
argument is NULL and then return immediately.
Thus the tests around their calls are 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/platform/sti/c8sectpfe/c8sectpfe-common.c