diff options
author | Mitchell Horne <mhorne@FreeBSD.org> | 2021-01-08 21:06:11 +0000 |
---|---|---|
committer | Mitchell Horne <mhorne@FreeBSD.org> | 2021-01-08 21:32:18 +0000 |
commit | cbc9be948a3bd6ff0f142b8fe995c27d7a06b536 (patch) | |
tree | 3c797feb31b0403967f74d2b7d2a4e12586a9c93 /sys/riscv/sifive | |
parent | 936440560bde54050e1ad9daae3b9103e05ad3fc (diff) | |
download | src-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.c | 2 |
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 |