git: 6ed3b9ca25ba - main - hid: fix typo in hid_is_collection
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 24 Apr 2023 11:20:20 UTC
The branch main has been updated by wulf: URL: https://cgit.FreeBSD.org/src/commit/?id=6ed3b9ca25ba71e2420555dce015dc80192a2b4e commit 6ed3b9ca25ba71e2420555dce015dc80192a2b4e Author: Hu Shunchao <ankohuu@outlook.com> AuthorDate: 2023-04-24 11:17:51 +0000 Commit: Vladimir Kondratyev <wulf@FreeBSD.org> CommitDate: 2023-04-24 11:17:51 +0000 hid: fix typo in hid_is_collection hid_input is equal to 0. It is leftover from NetBSD code. Reviewed by: hselasky, wulf MFC after: 1 month Differential revision: https://reviews.freebsd.org/D28149 --- sys/dev/hid/hid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/hid/hid.c b/sys/dev/hid/hid.c index 0ed663f99f88..9736498cc3c0 100644 --- a/sys/dev/hid/hid.c +++ b/sys/dev/hid/hid.c @@ -799,7 +799,7 @@ hid_is_collection(const void *desc, hid_size_t size, int32_t usage) struct hid_item hi; int err; - hd = hid_start_parse(desc, size, hid_input); + hd = hid_start_parse(desc, size, 0); if (hd == NULL) return (0);