android: ->f_op is never NULL
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 2 Sep 2014 21:29:40 +0000 (17:29 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 9 Oct 2014 06:39:12 +0000 (02:39 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
drivers/staging/android/ion/compat_ion.c

index ee3a7380e53b129ed04320940d6cae57cbbd4226..a402fdaf54ca37417e5282d1bb89008190b9a73a 100644 (file)
@@ -125,7 +125,7 @@ long compat_ion_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
 {
        long ret;
 
-       if (!filp->f_op || !filp->f_op->unlocked_ioctl)
+       if (!filp->f_op->unlocked_ioctl)
                return -ENOTTY;
 
        switch (cmd) {