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 ee3a738..a402fda 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) {