From: Goldwyn Rodrigues Date: Fri, 5 Oct 2018 12:26:15 +0000 (-0500) Subject: btrfs: Remove unused variable mode in btrfs_mount X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=cebf05ca65d68d0de869a74754e0a0be35056243;p=openwrt%2Fstaging%2Fblogic.git 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 --- 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) {