git: a044cf60bd37 - main - rk8xx_poweroff: add parentheses missed in 8b408fc6f2
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 18 Feb 2024 16:29:10 UTC
The branch main has been updated by avg: URL: https://cgit.FreeBSD.org/src/commit/?id=a044cf60bd375f894b371fc87d148bf4704c05a8 commit a044cf60bd375f894b371fc87d148bf4704c05a8 Author: Andriy Gapon <avg@FreeBSD.org> AuthorDate: 2024-02-18 16:26:20 +0000 Commit: Andriy Gapon <avg@FreeBSD.org> CommitDate: 2024-02-18 16:29:00 +0000 rk8xx_poweroff: add parentheses missed in 8b408fc6f2 Fixes: 8b408fc6f2 MFC after: 2 weeks --- sys/dev/iicbus/pmic/rockchip/rk8xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/iicbus/pmic/rockchip/rk8xx.c b/sys/dev/iicbus/pmic/rockchip/rk8xx.c index 6cbfd19ff443..fa3e95c9a68d 100644 --- a/sys/dev/iicbus/pmic/rockchip/rk8xx.c +++ b/sys/dev/iicbus/pmic/rockchip/rk8xx.c @@ -108,7 +108,7 @@ rk8xx_poweroff(void *arg, int howto) int error; uint8_t val; - if (howto & (RB_POWEROFF | RB_POWERCYCLE) == 0) + if ((howto & (RB_POWEROFF | RB_POWERCYCLE)) == 0) return; device_printf(sc->dev, "Powering off...\n");