aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/hid/hms.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/hid/hms.c')
-rw-r--r--sys/dev/hid/hms.c2
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);