Browse Source

android: ->f_op is never NULL

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Al Viro 11 years ago
parent
commit
765d368217
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/staging/android/ion/compat_ion.c

+ 1 - 1
drivers/staging/android/ion/compat_ion.c

@@ -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) {