From: Dan Carpenter Date: Wed, 11 Feb 2015 17:34:03 +0000 (-0800) Subject: Input: pxa27x_keypad - remove an unneeded NULL check X-Git-Tag: fixes-v4.0-rc1~30^2^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b2f514705fa00df1bc01d68fe9decbb7d59fcc6;p=pandora-kernel.git Input: pxa27x_keypad - remove an unneeded NULL check Static checkers complain about this NULL check because we dereference it without checking a couple lines later. This function is only called when "keypad->pdata" is non-NULL so we can just delete the NULL test. Signed-off-by: Dan Carpenter [Dmitry: remove the variable altogether given that it is used just once and dereference directly.] Signed-off-by: Dmitry Torokhov --- Reading git-diff-tree failed