diff options
author | Richard Weinberger <richard@nod.at> | 2015-03-04 00:05:11 +0100 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2015-03-26 23:27:51 +0100 |
commit | 112a5da717f86250bc6be2c63e7af174be7c5507 (patch) | |
tree | 702210da13a62d47d91d4cf99e9ccaca3ccb92aa /fs/hostfs | |
parent | 7f74a6687992f29c14b98a7bc8d5d924d5883434 (diff) | |
download | linux-112a5da717f86250bc6be2c63e7af174be7c5507.tar.bz2 |
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.c | 4 |
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) |