Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 112a5da7 authored by Richard Weinberger's avatar Richard Weinberger
Browse files

hostfs: Remove superfluous test in hostfs_open()

parent 7f74a668
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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)