sha1_file.c: cleanup hdr usage
[gitweb.git] / builtin-grep.c
index cec22047c97a59dc37eb877073b69de1bec05a6b..f35f2d023cf56cb3c75c817455cfc53a98175f54 100644 (file)
@@ -527,9 +527,9 @@ int cmd_grep(int argc, const char **argv, const char *prefix)
                        opt.word_regexp = 1;
                        continue;
                }
-               if (!(-prefixcmp(arg, "-A")) ||
-                   !(-prefixcmp(arg, "-B")) ||
-                   !(-prefixcmp(arg, "-C")) ||
+               if (!prefixcmp(arg, "-A") ||
+                   !prefixcmp(arg, "-B") ||
+                   !prefixcmp(arg, "-C") ||
                    (arg[0] == '-' && '1' <= arg[1] && arg[1] <= '9')) {
                        unsigned num;
                        const char *scan;