]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
generator: insert parentheses to make the code clearer
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 18 Feb 2025 17:45:30 +0000 (02:45 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 3 Mar 2025 20:18:15 +0000 (05:18 +0900)
Silence CID#1563781.

src/shared/generator.c

index 738f18927979e8daff8f0762dae2dcb7d95c34fd..9d7246fe02cc199c17be4d820395e5e5d640d833 100644 (file)
@@ -1028,5 +1028,5 @@ bool generator_soft_rebooted(void) {
                 return (cached = false);
         }
 
-        return (cached = u > 0);
+        return (cached = (u > 0));
 }