git: 322a188d45f1 - wmt: quiet gcc -Wparentheses

Ryan Libby rlibby at FreeBSD.org
Thu Dec 24 20:50:01 UTC 2020


The branch main has been updated by rlibby:

URL: https://cgit.FreeBSD.org/src/commit/?id=322a188d45f17457f0de00a78c77228751dff03c

commit 322a188d45f17457f0de00a78c77228751dff03c
Author:     Ryan Libby <rlibby at FreeBSD.org>
AuthorDate: 2020-12-24 20:49:27 +0000
Commit:     Ryan Libby <rlibby at FreeBSD.org>
CommitDate: 2020-12-24 20:49:27 +0000

    wmt: quiet gcc -Wparentheses
    
    Reviewed by:    wulf
    Sponsored by:   Dell EMC Isilon
    Differential Revision:  https://reviews.freebsd.org/D27767
---
 sys/dev/usb/input/wmt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/dev/usb/input/wmt.c b/sys/dev/usb/input/wmt.c
index 788341df288c..62e56fe026ca 100644
--- a/sys/dev/usb/input/wmt.c
+++ b/sys/dev/usb/input/wmt.c
@@ -635,7 +635,7 @@ wmt_process_report(struct wmt_softc *sc, uint8_t *buf, int len)
 			left_btn = hid_get_data(buf, len, &sc->btn_loc[0]);
 		if (sc->has_int_button || isset(sc->buttons, 0))
 			evdev_push_key(sc->evdev, BTN_LEFT,
-			    int_btn != 0 | left_btn != 0);
+			    (int_btn != 0) | (left_btn != 0));
 		for (btn = 1; btn < sc->max_button; ++btn) {
 			if (isset(sc->buttons, btn))
 				evdev_push_key(sc->evdev, BTN_MOUSE + btn,


More information about the dev-commits-src-all mailing list