提交 112a5da7 编写于 作者: R Richard Weinberger

hostfs: Remove superfluous test in hostfs_open()

Signed-off-by: NRichard Weinberger <richard@nod.at>
上级 7f74a668
......@@ -318,9 +318,7 @@ static int hostfs_open(struct inode *ino, struct file *file)
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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册