From cebf05ca65d68d0de869a74754e0a0be35056243 Mon Sep 17 00:00:00 2001 From: Goldwyn Rodrigues Date: Fri, 5 Oct 2018 07:26:15 -0500 Subject: btrfs: Remove unused variable mode in btrfs_mount This is a leftover from 312c89fbca06 ("btrfs: cleanup btrfs_mount() using btrfs_mount_root()"), the mode was used for opening devices that's not done here anymore. Reviewed-by: Nikolay Borisov Signed-off-by: Goldwyn Rodrigues Reviewed-by: David Sterba Signed-off-by: David Sterba --- fs/btrfs/super.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'fs/btrfs/super.c') diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c index db410c6b5f5f..526dbae5c4cf 100644 --- a/fs/btrfs/super.c +++ b/fs/btrfs/super.c @@ -1603,14 +1603,10 @@ static struct dentry *btrfs_mount(struct file_system_type *fs_type, int flags, { struct vfsmount *mnt_root; struct dentry *root; - fmode_t mode = FMODE_READ; char *subvol_name = NULL; u64 subvol_objectid = 0; int error = 0; - if (!(flags & SB_RDONLY)) - mode |= FMODE_WRITE; - error = btrfs_parse_subvol_options(data, &subvol_name, &subvol_objectid); if (error) { -- cgit