Do not perform extra check for NULL, evdev_free can handle NULL value

Submitted by:	Vladimir Kondratiev <wulf@cicgroup.ru>
This commit is contained in:
Oleksandr Tymoshenko 2016-09-23 18:55:32 +00:00
parent c3f2135cfc
commit 7dd7ec2c6b

View file

@ -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)) {