Explorar o código

ecryptfs: ->f_op is never NULL

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Al Viro %!s(int64=11) %!d(string=hai) anos
pai
achega
c2e3f5d5f4
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      fs/ecryptfs/file.c

+ 1 - 1
fs/ecryptfs/file.c

@@ -327,7 +327,7 @@ ecryptfs_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
 	struct file *lower_file = ecryptfs_file_to_lower(file);
 	long rc = -ENOIOCTLCMD;
 
-	if (lower_file->f_op && lower_file->f_op->compat_ioctl)
+	if (lower_file->f_op->compat_ioctl)
 		rc = lower_file->f_op->compat_ioctl(lower_file, cmd, arg);
 	return rc;
 }