From 780176f3564d625a72446b16de68f2175b9fc516 Mon Sep 17 00:00:00 2001 From: David Sterba Date: Thu, 9 Feb 2017 17:42:02 +0100 Subject: [PATCH] btrfs-progs: remove unused argument from print_device_sizes Signed-off-by: David Sterba --- cmds-device.c | 2 +- cmds-fi-usage.c | 2 +- cmds-fi-usage.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmds-device.c b/cmds-device.c index 7915bc97..5416ea1a 100644 --- a/cmds-device.c +++ b/cmds-device.c @@ -535,7 +535,7 @@ static int _cmd_device_usage(int fd, char *path, unsigned unit_mode) for (i = 0; i < devcount; i++) { printf("%s, ID: %llu\n", devinfo[i].path, devinfo[i].devid); - print_device_sizes(fd, &devinfo[i], unit_mode); + print_device_sizes(&devinfo[i], unit_mode); print_device_chunks(fd, &devinfo[i], chunkinfo, chunkcount, unit_mode); printf("\n"); diff --git a/cmds-fi-usage.c b/cmds-fi-usage.c index 95742154..9efea907 100644 --- a/cmds-fi-usage.c +++ b/cmds-fi-usage.c @@ -1033,7 +1033,7 @@ void print_device_chunks(int fd, struct device_info *devinfo, unit_mode | UNITS_NEGATIVE)); } -void print_device_sizes(int fd, struct device_info *devinfo, unsigned unit_mode) +void print_device_sizes(struct device_info *devinfo, unsigned unit_mode) { printf(" Device size: %*s%10s\n", (int)(20 - strlen("Device size")), "", diff --git a/cmds-fi-usage.h b/cmds-fi-usage.h index adb8ad30..e45b84af 100644 --- a/cmds-fi-usage.h +++ b/cmds-fi-usage.h @@ -52,6 +52,6 @@ int load_chunk_and_device_info(int fd, struct chunk_info **chunkinfo, void print_device_chunks(int fd, struct device_info *devinfo, struct chunk_info *chunks_info_ptr, int chunks_info_count, unsigned unit_mode); -void print_device_sizes(int fd, struct device_info *devinfo, unsigned unit_mode); +void print_device_sizes(struct device_info *devinfo, unsigned unit_mode); #endif