Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Jan 2023 20:32:21 GMT
From:      Vladimir Kondratyev <wulf@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 6f7b5d5d3c2e - main - hms(4): Fix a copy/paste issue and check both _X and _Y
Message-ID:  <202301202032.30KKWL2F014924@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202301202032.30KKWL2F014924>