aboutsummaryrefslogtreecommitdiffstats
path: root/cmds-filesystem.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2015-11-06 17:05:36 +0100
committerDavid Sterba <dsterba@suse.com>2015-11-06 17:05:36 +0100
commitee07dc99d19fd58f8ffba336779c282ad75597b0 (patch)
tree095141ec11d17e35c7e4730f69fd3e29ffa762d3 /cmds-filesystem.c
parente29ec82e4e66042ca55bf8cd9ef609e3b21a7eb7 (diff)
downloadbtrfs-progs-ee07dc99d19fd58f8ffba336779c282ad75597b0.tar.gz
btrfs-progs-ee07dc99d19fd58f8ffba336779c282ad75597b0.tar.xz
btrfs-progs-ee07dc99d19fd58f8ffba336779c282ad75597b0.zip
btrfs-progs: remove unused parameter from print_one_fs
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'cmds-filesystem.c')
-rw-r--r--cmds-filesystem.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/cmds-filesystem.c b/cmds-filesystem.c
index 0352945..c6ed388 100644
--- a/cmds-filesystem.c
+++ b/cmds-filesystem.c
@@ -387,7 +387,7 @@ static u64 calc_used_bytes(struct btrfs_ioctl_space_args *si)
static int print_one_fs(struct btrfs_ioctl_fs_info_args *fs_info,
struct btrfs_ioctl_dev_info_args *dev_info,
struct btrfs_ioctl_space_args *space_info,
- char *label, char *path, unsigned unit_mode)
+ char *label, unsigned unit_mode)
{
int i;
int fd;
@@ -491,8 +491,7 @@ static int btrfs_scan_kernel(void *search, unsigned unit_mode)
fd = open(mnt->mnt_dir, O_RDONLY);
if ((fd != -1) && !get_df(fd, &space_info_arg)) {
print_one_fs(&fs_info_arg, dev_info_arg,
- space_info_arg, label, mnt->mnt_dir,
- unit_mode);
+ space_info_arg, label, unit_mode);
kfree(space_info_arg);
memset(label, 0, sizeof(label));
found = 1;