Skip to content

Commit c2e3f5d

Browse files
author
Al Viro
committed
ecryptfs: ->f_op is never NULL
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent 765d368 commit c2e3f5d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎fs/ecryptfs/file.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ ecryptfs_compat_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
327327
struct file *lower_file = ecryptfs_file_to_lower(file);
328328
long rc = -ENOIOCTLCMD;
329329

330-
if (lower_file->f_op && lower_file->f_op->compat_ioctl)
330+
if (lower_file->f_op->compat_ioctl)
331331
rc = lower_file->f_op->compat_ioctl(lower_file, cmd, arg);
332332
return rc;
333333
}

0 commit comments

Comments
 (0)