svn commit: r306275 - head/sys/dev/usb/input

Oleksandr Tymoshenko gonzo at FreeBSD.org
Fri Sep 23 18:55:33 UTC 2016


Author: gonzo
Date: Fri Sep 23 18:55:32 2016
New Revision: 306275
URL: https://svnweb.freebsd.org/changeset/base/306275

Log:
  Do not perform extra check for NULL, evdev_free can handle NULL value
  
  Submitted by:	Vladimir Kondratiev <wulf at cicgroup.ru>

Modified:
  head/sys/dev/usb/input/ukbd.c

Modified: head/sys/dev/usb/input/ukbd.c
==============================================================================
--- head/sys/dev/usb/input/ukbd.c	Fri Sep 23 18:54:08 2016	(r306274)
+++ head/sys/dev/usb/input/ukbd.c	Fri Sep 23 18:55:32 2016	(r306275)
@@ -1432,8 +1432,7 @@ ukbd_detach(device_t dev)
 #endif
 
 #ifdef EVDEV
-	if (sc->sc_evdev != NULL)
-		evdev_free(sc->sc_evdev);
+	evdev_free(sc->sc_evdev);
 #endif
 
 	if (KBD_IS_CONFIGURED(&sc->sc_kbd)) {


More information about the svn-src-head mailing list