]> git.baikalelectronics.ru Git - kernel.git/commit
Input: pxa27x_keypad - remove an unneeded NULL check
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 11 Feb 2015 17:34:03 +0000 (09:34 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 12 Feb 2015 07:07:12 +0000 (23:07 -0800)
commit8d5e38acf2ac3ba0b1afff62e724b74f9d7f682c
tree3466bff37d99557ca76494be55ef702091a246fa
parent09e1668822d12c58cffb7ea01cd52ccb85c5a85b
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 <dan.carpenter@oracle.com>
[Dmitry: remove the variable altogether given that it is used just once and
 dereference directly.]
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/keyboard/pxa27x_keypad.c