Argument of char *path in _cmd_device_usage() is not necessary, remove it. Signed-off-by: Zhao Lei <zhao...@cn.fujitsu.com> --- cmds-device.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/cmds-device.c b/cmds-device.c index 739405b..190bed6 100644 --- a/cmds-device.c +++ b/cmds-device.c @@ -454,7 +454,7 @@ static const char * const cmd_device_usage_usage[] = { NULL }; -static int _cmd_device_usage(int fd, char *path, unsigned unit_mode) +static int _cmd_device_usage(int fd, unsigned unit_mode) { int i; int ret = 0; @@ -507,7 +507,7 @@ static int cmd_device_usage(int argc, char **argv) break; } - ret = _cmd_device_usage(fd, argv[i], unit_mode); + ret = _cmd_device_usage(fd, unit_mode); close_file_or_dir(fd, dirstream); if (ret) -- 1.8.5.1 -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html