git: 1097f2f40d08 - stable/13 - evdev: Add parentheses around '-' expression in operand of '&'.

From: Vladimir Kondratyev <wulf_at_FreeBSD.org>
Date: Tue, 30 Nov 2021 21:47:09 UTC
The branch stable/13 has been updated by wulf:

URL: https://cgit.FreeBSD.org/src/commit/?id=1097f2f40d08f661cfbc84755570987f09feac71

commit 1097f2f40d08f661cfbc84755570987f09feac71
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2021-09-15 16:03:18 +0000
Commit:     Vladimir Kondratyev <wulf@FreeBSD.org>
CommitDate: 2021-11-30 21:45:30 +0000

    evdev: Add parentheses around '-' expression in operand of '&'.
    
    This fixes a -Wparentheses error with GCC 9.
    
    Reviewed by:    wulf
    Differential Revision:  https://reviews.freebsd.org/D31947
    
    (cherry picked from commit d99c87c8d54a02a229cbeaa19ec8784b1d5afbb9)
---
 sys/dev/evdev/evdev_mt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/dev/evdev/evdev_mt.c b/sys/dev/evdev/evdev_mt.c
index 3030a60e098a..6eb263838a61 100644
--- a/sys/dev/evdev/evdev_mt.c
+++ b/sys/dev/evdev/evdev_mt.c
@@ -100,7 +100,7 @@ static void	evdev_mt_replay_events(struct evdev_dev *);
 static inline int
 ffc_slot(struct evdev_dev *evdev, slotset_t slots)
 {
-	return (ffs(~slots & (2U << MAXIMAL_MT_SLOT(evdev)) - 1) - 1);
+	return (ffs(~slots & ((2U << MAXIMAL_MT_SLOT(evdev)) - 1)) - 1);
 }
 
 void