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:
parent
27029bc08f
commit
6f7b5d5d3c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user