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
This commit is contained in:
Yuri 2023-01-20 23:25:17 +03:00 committed by Vladimir Kondratyev
parent 27029bc08f
commit 6f7b5d5d3c

View File

@ -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);