aboutsummaryrefslogtreecommitdiff
path: root/sys/riscv/sifive
diff options
context:
space:
mode:
authorMitchell Horne <mhorne@FreeBSD.org>2021-01-08 21:06:11 +0000
committerMitchell Horne <mhorne@FreeBSD.org>2021-01-08 21:32:18 +0000
commitcbc9be948a3bd6ff0f142b8fe995c27d7a06b536 (patch)
tree3c797feb31b0403967f74d2b7d2a4e12586a9c93 /sys/riscv/sifive
parent936440560bde54050e1ad9daae3b9103e05ad3fc (diff)
downloadsrc-cbc9be948a3bd6ff0f142b8fe995c27d7a06b536.tar.gz
src-cbc9be948a3bd6ff0f142b8fe995c27d7a06b536.zip
sifive_uart: quiet GCC -Werror=parentheses
Add an additional set of braces to clarify intention. The '&' operator has a higher precedence than '|', but the reader may not always remember this. No functional change.
Diffstat (limited to 'sys/riscv/sifive')
-rw-r--r--sys/riscv/sifive/sifive_uart.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/riscv/sifive/sifive_uart.c b/sys/riscv/sifive/sifive_uart.c
index e06d1fc0b727..cee9ddd0bc25 100644
--- a/sys/riscv/sifive/sifive_uart.c
+++ b/sys/riscv/sifive/sifive_uart.c
@@ -279,7 +279,7 @@ sfuart_bus_flush(struct uart_softc *sc, int what)
if (c) \
i |= ((i) & (s)) ? (s) : (s) | (d); \
else \
- i = ((i) & (s)) ? (i) & ~(s) | (d) : (i); \
+ i = ((i) & (s)) ? ((i) & ~(s)) | (d) : (i); \
} while (0)
static int