Input: cyapa - fix variable being dereferenced before check
authorDudley Du <dudl@cypress.com>
Thu, 22 Jan 2015 16:17:16 +0000 (08:17 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 22 Jan 2015 16:23:14 +0000 (08:23 -0800)
commita535a9f16cc39b978857d584d6e5fb9840db7db7
treedf71de2d15b5285a7121474fadbc956e103dfbcf
parent2be7256fe7f428a5627c368d6f32f4004df63df9
Input: cyapa - fix variable being dereferenced before check

Fixes the warning regarding variable being dereferenced before check
'gen5_pip->resp_len'.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Dudley Du <dudl@cypress.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/mouse/cyapa_gen5.c