From: Dan Carpenter Date: Mon, 14 Apr 2014 08:09:29 +0000 (+0300) Subject: video: mmpfb: cleanup some static checker warnings in probe() X-Git-Tag: omap-for-v3.16/fixes-against-rc1~56^2~24^2~24 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a513ad2d6de2dbf28465e4eae7d355a926944871;p=pandora-kernel.git 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 Reviewed-by: Jingoo Han Signed-off-by: Tomi Valkeinen --- Reading git-diff-tree failed