From: Al Viro Date: Tue, 2 Sep 2014 21:31:28 +0000 (-0400) Subject: ecryptfs: ->f_op is never NULL X-Git-Tag: v3.18-rc1~76^2~15 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c2e3f5d5f4620bb6568bc559f712ce80222e20cb;p=thirdparty%2Fkernel%2Flinux.git ecryptfs: ->f_op is never NULL Signed-off-by: Al Viro --- diff --git a/fs/ecryptfs/file.c b/fs/ecryptfs/file.c index db0fad3269c03..4ffa35e967617 100644 --- a/fs/ecryptfs/file.c +++ b/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; }