mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 04:31:50 +00:00
hostfs: Remove superfluous test in hostfs_open()
Signed-off-by: Richard Weinberger <richard@nod.at>
This commit is contained in:
parent
7f74a66879
commit
112a5da717
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user