video: fbdev-OMAP2: Deletion of unnecessary checks before the function call "i2c_put_...
authorMarkus Elfring <elfring@users.sourceforge.net>
Sun, 23 Nov 2014 13:07:22 +0000 (14:07 +0100)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 4 Dec 2014 14:16:01 +0000 (16:16 +0200)
commitbc500d6ed9e2f56a01a7a59d5366d4526111ba1e
tree5edc0cca3d804d710c3654421f575bd5d5c3a2e5
parent6049a7a2535bf0b5021b527e60dee9eda022bc90
video: fbdev-OMAP2: Deletion of unnecessary checks before the function call "i2c_put_adapter"

The i2c_put_adapter() function tests whether its argument is NULL
and then returns 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: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/fbdev/omap2/displays-new/connector-dvi.c