Skip to content

Commit

Permalink
hostfs: Remove superfluous test in hostfs_open()
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Weinberger <richard@nod.at>
  • Loading branch information
Richard Weinberger committed Mar 26, 2015
1 parent 7f74a66 commit 112a5da
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions fs/hostfs/hostfs_kern.c
Original file line number Diff line number Diff line change
Expand Up @@ -318,9 +318,7 @@ static int hostfs_open(struct inode *ino, struct file *file)
if (mode & FMODE_READ)
r = 1;
if (mode & FMODE_WRITE)
w = 1;
if (w)
r = 1;
r = w = 1;

name = dentry_name(file->f_path.dentry);
if (name == NULL)
Expand Down

0 comments on commit 112a5da

Please sign in to comment.