From: Kamalesh Babulal Date: Fri, 11 Aug 2023 06:55:04 +0000 (+0530) Subject: tools/cgcreate.c: fix coding style complaint X-Git-Tag: v3.2.0~225 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e6536ba48e08487f97408ec97dbcda8acdf5128;p=thirdparty%2Flibcgroup.git tools/cgcreate.c: fix coding style complaint Fix the checkpatch.pl warnings, making it coding style complaint. Signed-off-by: Kamalesh Babulal Signed-off-by: Tom Hromatka --- diff --git a/src/tools/cgcreate.c b/src/tools/cgcreate.c index 82a6c97c..a873bb4c 100644 --- a/src/tools/cgcreate.c +++ b/src/tools/cgcreate.c @@ -99,7 +99,7 @@ static int create_systemd_scope(struct cgroup * const cg, const char * const pro * the usual "0" on success. */ ret = 0; - } + } err: return ret; @@ -328,11 +328,10 @@ int main(int argc, char *argv[]) if (dirm_change | filem_change) cgroup_set_permissions(cgroup, dir_mode, file_mode, tasks_mode); - if (create_scope) { + if (create_scope) ret = create_systemd_scope(cgroup, argv[0], set_default_scope, scope_pid); - } else { + else ret = cgroup_create_cgroup(cgroup, 0); - } if (ret) { err("%s: can't create cgroup %s: %s\n", argv[0], cgroup->name, cgroup_strerror(ret));