From: Lennart Poettering Date: Fri, 24 Jun 2016 13:59:24 +0000 (+0200) Subject: cgroup: minor coding style fix X-Git-Tag: v231~95^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b40998d3c02ff4097373150cb47776ced0be315;p=thirdparty%2Fsystemd.git cgroup: minor coding style fix --- diff --git a/src/core/cgroup.c b/src/core/cgroup.c index 799296ad28f..932160d276f 100644 --- a/src/core/cgroup.c +++ b/src/core/cgroup.c @@ -36,8 +36,7 @@ #define CGROUP_CPU_QUOTA_PERIOD_USEC ((usec_t) 100 * USEC_PER_MSEC) -static void cgroup_compat_warn(void) -{ +static void cgroup_compat_warn(void) { static bool cgroup_compat_warned = false; if (cgroup_compat_warned) @@ -50,7 +49,7 @@ static void cgroup_compat_warn(void) #define log_cgroup_compat(unit, fmt, ...) do { \ cgroup_compat_warn(); \ log_unit_debug(unit, "cgroup-compat: " fmt, ##__VA_ARGS__); \ - } while (0) + } while (false) void cgroup_context_init(CGroupContext *c) { assert(c);