]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lib,cpuset: fix odd placed braces in cpulist_parse()
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Fri, 9 Sep 2011 09:19:31 +0000 (11:19 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 9 Sep 2011 22:00:15 +0000 (00:00 +0200)
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 <heiko.carstens@de.ibm.com>
lib/cpuset.c

index 842e8c8b5d18568e2ea12592a458691109e2aaf1..cf22aa7786a6425e7ca156c6e69bb49e802ebf37 100644 (file)
@@ -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;
                        }
                }