projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.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
|
blame
|
history
diff --git
a/fs/hostfs/hostfs_kern.c
b/fs/hostfs/hostfs_kern.c
index 06b3e3f47c0ee4e714f37a5a10d0425035893586..8bbceae5ed03f3de4efaa4e3d7835415f232fd43 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)