]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
cgroup-setup: clarify '<=' is evaluated earlier
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 28 Feb 2024 02:51:04 +0000 (11:51 +0900)
committerMike Yuan <me@yhndnzj.com>
Wed, 28 Feb 2024 06:11:43 +0000 (14:11 +0800)
Follow-up for 31323f21bb0ae7c712f43500c42997c91a6d20bf.

The code is correct, but let's silence Coverity.

Closes CID#1534787.

src/shared/cgroup-setup.c

index a528d4292d03691671d0eff9018bca5b4c54097f..d753fd933678ca7aa0550664adbaa7c0ea007580 100644 (file)
@@ -106,7 +106,7 @@ bool cg_is_unified_wanted(void) {
                 return (wanted = true);
 
         /* If any controller is in use as v1, don't use unified. */
-        return (wanted = cg_any_controller_used_for_v1() <= 0);
+        return (wanted = (cg_any_controller_used_for_v1() <= 0));
 }
 
 bool cg_is_legacy_wanted(void) {