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
This commit is contained in:
John Baldwin 2021-09-15 09:03:18 -07:00
parent cd16a848d1
commit d99c87c8d5

View File

@ -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