git: 6f7b5d5d3c2e - main - hms(4): Fix a copy/paste issue and check both _X and _Y
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 20 Jan 2023 20:32:21 UTC
The branch main has been updated by wulf: URL: https://cgit.FreeBSD.org/src/commit/?id=6f7b5d5d3c2e4704985723d5a23a2494050d8b6b commit 6f7b5d5d3c2e4704985723d5a23a2494050d8b6b Author: Yuri <yuri@aetern.org> AuthorDate: 2023-01-20 20:25:17 +0000 Commit: Vladimir Kondratyev <wulf@FreeBSD.org> CommitDate: 2023-01-20 20:29:53 +0000 hms(4): Fix a copy/paste issue and check both _X and _Y instead of checking _X 2 times. Reviewed by: wulf MFC after: 2 weeks Differential revision: https://reviews.freebsd.org/D38135 --- sys/dev/hid/hms.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/hid/hms.c b/sys/dev/hid/hms.c index 87d207cc3f6b..f32760f60c4d 100644 --- a/sys/dev/hid/hms.c +++ b/sys/dev/hid/hms.c @@ -219,7 +219,7 @@ hms_probe(device_t dev) /* There should be at least one X or Y axis */ if (!hidmap_test_cap(sc->caps, HMS_REL_X) && - !hidmap_test_cap(sc->caps, HMS_REL_X) && + !hidmap_test_cap(sc->caps, HMS_REL_Y) && !hidmap_test_cap(sc->caps, HMS_ABS_X) && !hidmap_test_cap(sc->caps, HMS_ABS_Y)) return (ENXIO);