aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2021-09-15 16:03:18 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2021-09-15 16:03:18 +0000
commitd99c87c8d54a02a229cbeaa19ec8784b1d5afbb9 (patch)
treeb2f562eefd8badb77f14ffa831dfd7ef9b2573eb
parentcd16a848d1b34016b1a1c663223729a92c247be3 (diff)
downloadsrc-d99c87c8d54a02a229cbeaa19ec8784b1d5afbb9.tar.gz
src-d99c87c8d54a02a229cbeaa19ec8784b1d5afbb9.zip
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
-rw-r--r--sys/dev/evdev/evdev_mt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/evdev/evdev_mt.c b/sys/dev/evdev/evdev_mt.c
index a3cb76cbbdb4..1b4ec1233ef2 100644
--- a/sys/dev/evdev/evdev_mt.c
+++ b/sys/dev/evdev/evdev_mt.c
@@ -101,7 +101,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