svn commit: r284450 - head/sys/dev/atkbdc

Gleb Smirnoff glebius at FreeBSD.org
Tue Jun 16 15:39:35 UTC 2015


Author: glebius
Date: Tue Jun 16 15:39:34 2015
New Revision: 284450
URL: https://svnweb.freebsd.org/changeset/base/284450

Log:
  Fix miss from r284320.
  
  Coverity:	1018895

Modified:
  head/sys/dev/atkbdc/psm.c

Modified: head/sys/dev/atkbdc/psm.c
==============================================================================
--- head/sys/dev/atkbdc/psm.c	Tue Jun 16 15:14:40 2015	(r284449)
+++ head/sys/dev/atkbdc/psm.c	Tue Jun 16 15:39:34 2015	(r284450)
@@ -5102,7 +5102,7 @@ enable_trackpoint(struct psm_softc *sc, 
 	id = read_aux_data(kbdc);
 	if (id < 0x01)
 		return (FALSE);
-	if (sc != NULL)
+	if (arg == PROBE)
 		sc->tphw = id;
 	if (!trackpoint_support)
 		return (FALSE);


More information about the svn-src-head mailing list