summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Krummenacher <max.krummenacher@toradex.com>2016-07-12 10:51:03 +0200
committerStefan Agner <stefan.agner@toradex.com>2016-07-14 11:20:05 -0700
commitbf659a4c222e61a265715e2dae5ee95435b592b7 (patch)
tree700b0aceccfba730ca8c2ec9a3c8185d7537e64f
parent6d13b114c8fd725ce5a1113a5c8a89e7d96b6cf0 (diff)
kernel/cgroup.c: silence compiler warning
kernel/cgroup.c:1235:5: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses] if (all_ss || (!one_ss && !opts->none && !opts->name)) ^ Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> Acked-by: Stefan Agner <stefan.agner@toradex.com>
-rw-r--r--kernel/cgroup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/cgroup.c b/kernel/cgroup.c
index 4380ca0..94b7fd6 100644
--- a/kernel/cgroup.c
+++ b/kernel/cgroup.c
@@ -1232,11 +1232,11 @@ static int parse_cgroupfs_options(char *data, struct cgroup_sb_opts *opts)
* otherwise if 'none', 'name=' and a subsystem name options
* were not specified, let's default to 'all'
*/
- if (all_ss || (!one_ss && !opts->none && !opts->name))
+ if (all_ss || (!one_ss && !opts->none && !opts->name)) {
for_each_subsys(ss, i)
if (!ss->disabled)
set_bit(i, &opts->subsys_mask);
-
+ }
/* Consistency checks */
if (opts->flags & CGRP_ROOT_SANE_BEHAVIOR) {