natacontrol(8): Fix [-Werror=logical-not-parentheses] error
authorJohn Marino <draco@marino.st>
Tue, 10 Feb 2015 20:55:23 +0000 (21:55 +0100)
committerJohn Marino <draco@marino.st>
Tue, 10 Feb 2015 20:55:23 +0000 (21:55 +0100)
sbin/natacontrol/natacontrol.c

index 851b277..4749f64 100644 (file)
@@ -518,8 +518,8 @@ main(int argc, char **argv)
                if (config.type == AR_RAID0 ||
                    config.type == AR_RAID01 ||
                    config.type == AR_RAID5) {
-                       if (argc < 4 ||
-                           !sscanf(argv[3], "%d", &config.interleave) == 1) {
+                       if (argc < 4 || !(sscanf(argv[3], "%d",
+                               &config.interleave) == 1)) {
                                fprintf(stderr,
                                        "natacontrol: Invalid interleave %s\n",
                                        argv[3]);