From d3bc19d9bd8f795c85e2c7e00db01d4e926f0682 Mon Sep 17 00:00:00 2001 From: jsg Date: Mon, 22 Nov 2021 03:30:20 +0000 Subject: [PATCH] avoid clang -Wsometimes-uninitialized warning with SMALL_KERNEL --- sys/dev/usb/uhidev.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/dev/usb/uhidev.c b/sys/dev/usb/uhidev.c index 3e61642ca9e..2cf222edd68 100644 --- a/sys/dev/usb/uhidev.c +++ b/sys/dev/usb/uhidev.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uhidev.c,v 1.101 2021/11/17 06:20:30 anton Exp $ */ +/* $OpenBSD: uhidev.c,v 1.102 2021/11/22 03:30:20 jsg Exp $ */ /* $NetBSD: uhidev.c,v 1.14 2003/03/11 16:44:00 augustss Exp $ */ /* @@ -140,9 +140,10 @@ uhidev_attach(struct device *parent, struct device *self, void *aux) usb_interface_descriptor_t *id; usb_endpoint_descriptor_t *ed; struct uhidev_attach_arg uha; - int size, nrepid, repid, repsz; + int nrepid, repid, repsz; int i; void *desc = NULL; + int size = 0; struct device *dev; sc->sc_udev = uaa->device; -- 2.20.1