From 765d368217715c794f767d396d8cea16502d823f Mon Sep 17 00:00:00 2001 From: Al Viro Date: Tue, 2 Sep 2014 17:29:40 -0400 Subject: [PATCH] android: ->f_op is never NULL Signed-off-by: Al Viro --- drivers/staging/android/ion/compat_ion.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/android/ion/compat_ion.c b/drivers/staging/android/ion/compat_ion.c index ee3a7380e53b..a402fdaf54ca 100644 --- a/drivers/staging/android/ion/compat_ion.c +++ b/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) { -- 2.39.5