Skip to content
Commit 185af4d6 authored by Dmitry Torokhov's avatar Dmitry Torokhov
Browse files

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: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent 4db1f47c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment