Re: [PATCH] btrfs: Remove unused variable mode in btrfs_mount

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On  5.10.2018 15:26, Goldwyn Rodrigues wrote:
> Code cleanup.
> 
> Signed-off-by: Goldwyn Rodrigues <rgoldwyn@xxxxxxxx>

Reviewed-by: Nikolay Borisov <nborisov@xxxxxxxx>

> 
> diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c
> index e7f702761cb7..f7b8b7a6b86a 100644
> --- a/fs/btrfs/super.c
> +++ b/fs/btrfs/super.c
> @@ -1661,14 +1661,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) {
> 



[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux