Commit 112a5da7 authored by Richard Weinberger's avatar Richard Weinberger

hostfs: Remove superfluous test in hostfs_open()

Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
parent 7f74a668
...@@ -318,9 +318,7 @@ static int hostfs_open(struct inode *ino, struct file *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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment