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)
commit185af4d6668e4805d18d1bdf21dfec89d680fee3
tree48b74b3bf021e6ef362d24b4b485aeda43a95b2f
parent4db1f47c29bd19e2069fb877620540db2a51a572
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