From: Goldwyn Rodrigues Date: Fri, 5 Oct 2018 12:26:15 +0000 (-0500) Subject: btrfs: Remove unused variable mode in btrfs_mount X-Git-Tag: v5.4-rc1~213^2~103 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cebf05ca65d68d0de869a74754e0a0be35056243;p=platform%2Fkernel%2Flinux-rpi.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 db410c6..526dbae 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) {