btrfs-progs: move prefixcmp helper to utils
[platform/upstream/btrfs-progs.git] / help.c
diff --git a/help.c b/help.c
index b571804..19b0d35 100644 (file)
--- a/help.c
+++ b/help.c
@@ -359,12 +359,3 @@ void help_command_group(const struct cmd_group *grp, int argc, char **argv)
        usage_command_group(grp, full, 0);
 }
 
-int prefixcmp(const char *str, const char *prefix)
-{
-       for (; ; str++, prefix++)
-               if (!*prefix)
-                       return 0;
-               else if (*str != *prefix)
-                       return (unsigned char)*prefix - (unsigned char)*str;
-}
-