From: Yu Watanabe Date: Wed, 28 Feb 2024 02:51:04 +0000 (+0900) Subject: cgroup-setup: clarify '<=' is evaluated earlier X-Git-Tag: v256-rc1~716 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9398ef0786e38520f8ea66fb42fafbc07450609c;p=thirdparty%2Fsystemd.git cgroup-setup: clarify '<=' is evaluated earlier Follow-up for 31323f21bb0ae7c712f43500c42997c91a6d20bf. The code is correct, but let's silence Coverity. Closes CID#1534787. --- diff --git a/src/shared/cgroup-setup.c b/src/shared/cgroup-setup.c index a528d4292d0..d753fd93367 100644 --- a/src/shared/cgroup-setup.c +++ b/src/shared/cgroup-setup.c @@ -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) {