]> git.baikalelectronics.ru Git - kernel.git/commit
Input: cyttsp - remove useless checks in cyttsp_probe()
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 4 Mar 2012 17:26:15 +0000 (09:26 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 4 Mar 2012 18:49:27 +0000 (10:49 -0800)
commit29c4471e925135884bfc3c54cb46042f304c2403
tree625eb8a9d94fd29460170698bb273ff4ef97e7eb
parent87a142243f9e4fae4635f31a34d5da29f269d4da
Input: cyttsp - remove useless checks in cyttsp_probe()

This fixes reference-before-check problem; there is no reason to check
if caller passed NULL dev or bus_ops as it is done only by bus-specific
drivers which already do the right thing.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/touchscreen/cyttsp_core.c