]> git.baikalelectronics.ru Git - kernel.git/commit
Input: psmouse - remove unneeded check in psmouse_reconnect()
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 25 Oct 2014 00:20:27 +0000 (17:20 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 28 Oct 2014 18:42:56 +0000 (11:42 -0700)
commit963e9e428694f08b601e888e25d2a764944e5147
tree48b74b3bf021e6ef362d24b4b485aeda43a95b2f
parenta9265439d7c1603d6c006b8a9515e9a93c47cbc3
Input: psmouse - remove unneeded check in psmouse_reconnect()

psmouse_reconnect() will not be called if psmouse driver is not bound to
the serio port, so there is no point in checking that.  Also, as coded, it
introduces potential NULL dereference in psmouse_dbg() in case psmouse is
indeed NULL. Let's just remove it.

Detected by Coverity: CID 146528

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/mouse/psmouse-base.c