summaryrefslogtreecommitdiffstats
path: root/fs/hostfs
diff options
context:
space:
mode:
authorRichard Weinberger <richard@nod.at>2015-03-04 00:05:11 +0100
committerRichard Weinberger <richard@nod.at>2015-03-26 23:27:51 +0100
commit112a5da717f86250bc6be2c63e7af174be7c5507 (patch)
tree702210da13a62d47d91d4cf99e9ccaca3ccb92aa /fs/hostfs
parenthostfs: Report append flag in ->show_options() (diff)
downloadlinux-112a5da717f86250bc6be2c63e7af174be7c5507.tar.xz
linux-112a5da717f86250bc6be2c63e7af174be7c5507.zip
hostfs: Remove superfluous test in hostfs_open()
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'fs/hostfs')
-rw-r--r--fs/hostfs/hostfs_kern.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/hostfs/hostfs_kern.c b/fs/hostfs/hostfs_kern.c
index 06b3e3f47c0e..8bbceae5ed03 100644
--- a/fs/hostfs/hostfs_kern.c
+++ b/fs/hostfs/hostfs_kern.c
@@ -318,9 +318,7 @@ retry:
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)