diff options
| author | riastradh <riastradh@NetBSD.org> | 2022-03-29 06:59:19 +0000 |
|---|---|---|
| committer | riastradh <riastradh@NetBSD.org> | 2022-03-29 06:59:19 +0000 |
| commit | 97217f2e3909f6e8bb9cd25ae15e4ee4e934be8d (patch) | |
| tree | 4be616667de939a23e4a50439580e71446f4f7f5 /sys/dev/usb | |
| parent | 374c91a028ad28b6880e6ae7a659c8cb38f0a746 (diff) | |
uhid(4): Make sure error is initialized in uhidkqfilter.
Diffstat (limited to 'sys/dev/usb')
| -rw-r--r-- | sys/dev/usb/uhid.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/usb/uhid.c b/sys/dev/usb/uhid.c index fcb4b5642d9..41bbd88a671 100644 --- a/sys/dev/usb/uhid.c +++ b/sys/dev/usb/uhid.c @@ -1,4 +1,4 @@ -/* $NetBSD: uhid.c,v 1.123 2022/03/28 12:44:17 riastradh Exp $ */ +/* $NetBSD: uhid.c,v 1.124 2022/03/29 06:59:19 riastradh Exp $ */ /* * Copyright (c) 1998, 2004, 2008, 2012 The NetBSD Foundation, Inc. @@ -35,7 +35,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: uhid.c,v 1.123 2022/03/28 12:44:17 riastradh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: uhid.c,v 1.124 2022/03/29 06:59:19 riastradh Exp $"); #ifdef _KERNEL_OPT #include "opt_compat_netbsd.h" @@ -753,7 +753,7 @@ static int uhidkqfilter(dev_t dev, struct knote *kn) { struct uhid_softc *sc = device_lookup_private(&uhid_cd, UHIDUNIT(dev)); - int error; + int error = 0; switch (kn->kn_filter) { case EVFILT_READ: |
