mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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:
parent
c3f2135cfc
commit
7dd7ec2c6b
1 changed files with 1 additions and 2 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue