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 <[email protected]> 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)) { _______________________________________________ [email protected] mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "[email protected]"
