btrfs-progs: remove unused argument from print_device_chunks
authorDavid Sterba <dsterba@suse.com>
Thu, 9 Feb 2017 16:42:02 +0000 (17:42 +0100)
committerDavid Sterba <dsterba@suse.com>
Wed, 8 Mar 2017 12:00:48 +0000 (13:00 +0100)
Signed-off-by: David Sterba <dsterba@suse.com>
cmds-device.c
cmds-fi-usage.c
cmds-fi-usage.h

index 5416ea1..5e016a7 100644 (file)
@@ -536,7 +536,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(&devinfo[i], unit_mode);
-               print_device_chunks(fd, &devinfo[i], chunkinfo, chunkcount,
+               print_device_chunks(&devinfo[i], chunkinfo, chunkcount,
                                unit_mode);
                printf("\n");
        }
index 9efea90..101a0c4 100644 (file)
@@ -997,7 +997,7 @@ out:
        return !!ret;
 }
 
-void print_device_chunks(int fd, struct device_info *devinfo,
+void print_device_chunks(struct device_info *devinfo,
                struct chunk_info *chunks_info_ptr,
                int chunks_info_count, unsigned unit_mode)
 {
index e45b84a..f967ba8 100644 (file)
@@ -49,7 +49,7 @@ struct chunk_info {
 
 int load_chunk_and_device_info(int fd, struct chunk_info **chunkinfo,
                int *chunkcount, struct device_info **devinfo, int *devcount);
-void print_device_chunks(int fd, struct device_info *devinfo,
+void print_device_chunks(struct device_info *devinfo,
                struct chunk_info *chunks_info_ptr,
                int chunks_info_count, unsigned unit_mode);
 void print_device_sizes(struct device_info *devinfo, unsigned unit_mode);