diff options
author | Yuri <yuri@aetern.org> | 2023-01-20 20:25:17 +0000 |
---|---|---|
committer | Vladimir Kondratyev <wulf@FreeBSD.org> | 2023-01-20 20:29:53 +0000 |
commit | 6f7b5d5d3c2e4704985723d5a23a2494050d8b6b (patch) | |
tree | b338e09d09cb39e98856fbf292c26b1334c745e9 | |
parent | 27029bc08f1d7fdb39b2aee6ff8263f68dd93495 (diff) | |
download | src-6f7b5d5d3c2e4704985723d5a23a2494050d8b6b.tar.gz src-6f7b5d5d3c2e4704985723d5a23a2494050d8b6b.zip |
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
-rw-r--r-- | sys/dev/hid/hms.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |