From: Heiko Carstens Date: Fri, 9 Sep 2011 09:19:31 +0000 (+0200) Subject: lib,cpuset: fix odd placed braces in cpulist_parse() X-Git-Tag: v2.21-rc1~437 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=289127f52ddaeec8484d5321a3169a2bb5026b58;p=thirdparty%2Futil-linux.git lib,cpuset: fix odd placed braces in cpulist_parse() The opening and closing braces for two following if statements within cpulist_parse() are placed in an odd manner. Just fix this to prevent broken code in the future. Signed-off-by: Heiko Carstens --- diff --git a/lib/cpuset.c b/lib/cpuset.c index 842e8c8b5d..cf22aa7786 100644 --- a/lib/cpuset.c +++ b/lib/cpuset.c @@ -289,8 +289,8 @@ int cpulist_parse(const char *str, cpu_set_t *set, size_t setsize, int fail) if (sscanf(c1, "%u", &b) < 1) return 1; c1 = nexttoken(c1, ':'); - if (c1 != NULL && (c2 == NULL || c1 < c2)) - if (sscanf(c1, "%u", &s) < 1) { + if (c1 != NULL && (c2 == NULL || c1 < c2)) { + if (sscanf(c1, "%u", &s) < 1) return 1; } }