Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb uhid(4): Make sure error is initialized in uhidk...
details: https://anonhg.NetBSD.org/src/rev/beb79cb6862d
branches: trunk
changeset: 364563:beb79cb6862d
user: riastradh <riastradh%NetBSD.org@localhost>
date: Tue Mar 29 06:59:19 2022 +0000
description:
uhid(4): Make sure error is initialized in uhidkqfilter.
diffstat:
sys/dev/usb/uhid.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r e0b5ef455200 -r beb79cb6862d sys/dev/usb/uhid.c
--- a/sys/dev/usb/uhid.c Tue Mar 29 06:56:51 2022 +0000
+++ b/sys/dev/usb/uhid.c Tue Mar 29 06:59:19 2022 +0000
@@ -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 @@
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:
Home |
Main Index |
Thread Index |
Old Index