git: 2ccf459e645b - stable/13 - usb(4): Fix build after 45b48cbc2b5819cd6e3dee3632d66e55d5d7c101.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 27 Dec 2022 01:19:57 UTC
The branch stable/13 has been updated by wulf: URL: https://cgit.FreeBSD.org/src/commit/?id=2ccf459e645b51ae34db533d526b4d74f692b582 commit 2ccf459e645b51ae34db533d526b4d74f692b582 Author: Hans Petter Selasky <hselasky@FreeBSD.org> AuthorDate: 2021-12-18 20:26:57 +0000 Commit: Vladimir Kondratyev <wulf@FreeBSD.org> CommitDate: 2022-12-27 01:14:59 +0000 usb(4): Fix build after 45b48cbc2b5819cd6e3dee3632d66e55d5d7c101. Make sure local variable is initialized when COMPAT_32BIT is not defined. (cherry picked from commit 34077a8ed39f40da4b7faffff0b112f1dcb62ab4) --- 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 7d1da583a817..eeeb94e396f5 100644 --- a/sys/dev/hid/hidraw.c +++ b/sys/dev/hid/hidraw.c @@ -580,8 +580,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: