projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f74a66
)
hostfs: Remove superfluous test in hostfs_open()
author
Richard Weinberger
<richard@nod.at>
Tue, 3 Mar 2015 23:05:11 +0000
(
00:05
+0100)
committer
Richard Weinberger
<richard@nod.at>
Thu, 26 Mar 2015 22:27:51 +0000
(23:27 +0100)
Signed-off-by: Richard Weinberger <richard@nod.at>
fs/hostfs/hostfs_kern.c
patch
|
blob
|
history
diff --git
a/fs/hostfs/hostfs_kern.c
b/fs/hostfs/hostfs_kern.c
index
06b3e3f
..
8bbceae
100644
(file)
--- 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)