[3/3] btrfs-progs: Remove noused path argument in _cmd_device_usage
diff mbox

Message ID 5a8b2bad6c1f0fb6a6778d68fbdcc5ee5e831b78.1447063147.git.zhaolei@cn.fujitsu.com
State New
Headers show

Commit Message

Zhaolei Nov. 9, 2015, 9:59 a.m. UTC
Argument of char *path in _cmd_device_usage() is not necessary,
remove it.

Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com>
---
 cmds-device.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch
diff mbox

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)