From 9398ef0786e38520f8ea66fb42fafbc07450609c Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Wed, 28 Feb 2024 11:51:04 +0900 Subject: [PATCH] cgroup-setup: clarify '<=' is evaluated earlier Follow-up for 31323f21bb0ae7c712f43500c42997c91a6d20bf. The code is correct, but let's silence Coverity. Closes CID#1534787. --- src/shared/cgroup-setup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/cgroup-setup.c b/src/shared/cgroup-setup.c index a528d4292d..d753fd9336 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) {