git: 34077a8ed39f - main - usb(4): Fix build after 45b48cbc2b5819cd6e3dee3632d66e55d5d7c101.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 18 Dec 2021 20:32:36 UTC
The branch main has been updated by hselasky:
URL: https://cgit.FreeBSD.org/src/commit/?id=34077a8ed39f40da4b7faffff0b112f1dcb62ab4
commit 34077a8ed39f40da4b7faffff0b112f1dcb62ab4
Author: Hans Petter Selasky <hselasky@FreeBSD.org>
AuthorDate: 2021-12-18 20:26:57 +0000
Commit: Hans Petter Selasky <hselasky@FreeBSD.org>
CommitDate: 2021-12-18 20:31:03 +0000
usb(4): Fix build after 45b48cbc2b5819cd6e3dee3632d66e55d5d7c101.
Make sure local variable is initialized when COMPAT_32BIT is not defined.
MFC after: 1 week
Sponsored by: NVIDIA Networking
---
sys/dev/hid/hidraw.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/sys/dev/hid/hidraw.c b/sys/dev/hid/hidraw.c
index f359fe3e7e6f..25b41693b7f3 100644
--- a/sys/dev/hid/hidraw.c
+++ b/sys/dev/hid/hidraw.c
@@ -579,8 +579,9 @@ hidraw_ioctl(struct cdev *dev, u_long cmd, caddr_t addr, int flag,
if (sc == NULL)
return (EIO);
-#ifdef COMPAT_FREEBSD32
hgd = (struct hidraw_gen_descriptor *)addr;
+
+#ifdef COMPAT_FREEBSD32
switch (cmd) {
case HIDRAW_GET_REPORT_DESC32:
case HIDRAW_GET_REPORT32: