Fix miss from r284320.

Coverity:	1018895
This commit is contained in:
Gleb Smirnoff 2015-06-16 15:39:34 +00:00
parent 3d2550b5c4
commit a57b51f99a

View File

@ -5102,7 +5102,7 @@ enable_trackpoint(struct psm_softc *sc, enum probearg arg)
id = read_aux_data(kbdc);
if (id < 0x01)
return (FALSE);
if (sc != NULL)
if (arg == PROBE)
sc->tphw = id;
if (!trackpoint_support)
return (FALSE);