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
parent7f74a6687992f29c14b98a7bc8d5d924d5883434 (diff)
downloadop-kernel-dev-112a5da717f86250bc6be2c63e7af174be7c5507.zip
op-kernel-dev-112a5da717f86250bc6be2c63e7af174be7c5507.tar.gz
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 06b3e3f..8bbceae 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)
OpenPOWER on IntegriCloud