From 50417091a076a84ed06ea8d7158b749ece0d0914 Mon Sep 17 00:00:00 2001 From: Gu Jinxiang Date: Fri, 30 Mar 2018 10:56:50 +0800 Subject: [PATCH] btrfs-progs: Remove unused parameter Parameter usagestr is not used, remove it. Signed-off-by: Gu Jinxiang Reviewed-by: Nikolay Borisov Signed-off-by: David Sterba --- cmds-filesystem.c | 2 +- help.c | 2 +- help.h | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/cmds-filesystem.c b/cmds-filesystem.c index 225df42..30a50bf 100644 --- a/cmds-filesystem.c +++ b/cmds-filesystem.c @@ -1086,7 +1086,7 @@ static int cmd_filesystem_resize(int argc, char **argv) DIR *dirstream = NULL; struct stat st; - clean_args_no_options_relaxed(argc, argv, cmd_filesystem_resize_usage); + clean_args_no_options_relaxed(argc, argv); if (check_argc_exact(argc - optind, 2)) usage(cmd_filesystem_resize_usage); diff --git a/help.c b/help.c index 311a432..f1dd394 100644 --- a/help.c +++ b/help.c @@ -115,7 +115,7 @@ void clean_args_no_options(int argc, char *argv[], const char * const *usagestr) * - "-- option1 option2 ..." * - "option1 option2 ..." */ -void clean_args_no_options_relaxed(int argc, char *argv[], const char * const *usagestr) +void clean_args_no_options_relaxed(int argc, char *argv[]) { if (argc <= 1) return; diff --git a/help.h b/help.h index efeded3..a140594 100644 --- a/help.h +++ b/help.h @@ -72,8 +72,7 @@ int check_argc_exact(int nargs, int expected); int check_argc_min(int nargs, int expected); int check_argc_max(int nargs, int expected); void clean_args_no_options(int argc, char *argv[], const char * const *usage); -void clean_args_no_options_relaxed(int argc, char *argv[], - const char * const *usagestr); +void clean_args_no_options_relaxed(int argc, char *argv[]); void fixup_argv0(char **argv, const char *token); void set_argv0(char **argv); -- 2.7.4