hostfs: Remove superfluous test in hostfs_open()

Signed-off-by: Richard Weinberger <richard@nod.at>
This commit is contained in:
Richard Weinberger 2015-03-04 00:05:11 +01:00
parent 7f74a66879
commit 112a5da717
1 changed files with 1 additions and 3 deletions

View File

@ -318,9 +318,7 @@ static int hostfs_open(struct inode *ino, struct file *file)
if (mode & FMODE_READ) if (mode & FMODE_READ)
r = 1; r = 1;
if (mode & FMODE_WRITE) if (mode & FMODE_WRITE)
w = 1; r = w = 1;
if (w)
r = 1;
name = dentry_name(file->f_path.dentry); name = dentry_name(file->f_path.dentry);
if (name == NULL) if (name == NULL)