Explorar o código

hostfs: Remove superfluous test in hostfs_open()

Signed-off-by: Richard Weinberger <richard@nod.at>
Richard Weinberger %!s(int64=10) %!d(string=hai) anos
pai
achega
112a5da717
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  1. 1 3
      fs/hostfs/hostfs_kern.c

+ 1 - 3
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)