btrfs-progs: remove unused argument from print_device_sizes

Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
David Sterba 2017-02-09 17:42:02 +01:00
parent ff76f61e98
commit 780176f356
3 changed files with 3 additions and 3 deletions

View File

@ -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");

View File

@ -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")), "",

View File

@ -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