]> git.baikalelectronics.ru Git - kernel.git/commit
Input: cyttsp4 - silence NULL dereference warning
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 3 Jul 2013 03:32:53 +0000 (20:32 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 3 Jul 2013 03:39:20 +0000 (20:39 -0700)
commit2891dac61727769b50c2f74208db12f49d5a5d03
tree4c6478d51d1d3e92c62fcac7a6d422e8cff8d257
parentda2659b7d2e704dfcb9a9ee845223c2cc8c534c7
Input: cyttsp4 - silence NULL dereference warning

If "cd" were NULL then we would dereference it when we print the error
message.  Fortunately enough, it can't ever be NULL so we can remove
those lines.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/cyttsp4_core.c