]> git.baikalelectronics.ru Git - kernel.git/commit
video: mmpfb: cleanup some static checker warnings in probe()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 14 Apr 2014 08:09:29 +0000 (11:09 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Wed, 30 Apr 2014 10:57:29 +0000 (13:57 +0300)
commit518922167f7e5c8f2aa4a1e6629bb14fcb28d3d6
tree52d35c2d27938a0cc931d6ecf0678fca5575bbc6
parent7dd9cd266bcf882a74902654c380fd4fc7e6a97b
video: mmpfb: cleanup some static checker warnings in probe()

Sparse complains about using zero instead of NULL for pointers.
Probably, if we enabled the warning, then GCC would complain about the
unused initializers.  I've just removed them.

Smatch complains that we first check if "fbi" is NULL and then
dereference it in the error handling.  It turns out that "fbi" can't be
NULL so I've removed the check.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/fbdev/mmp/fb/mmpfb.c