Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Sep 2016 18:55:32 +0000 (UTC)
From:      Oleksandr Tymoshenko <gonzo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r306275 - head/sys/dev/usb/input
Message-ID:  <201609231855.u8NItWhh091971@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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)) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201609231855.u8NItWhh091971>