android: ->f_op is never NULL
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
3cfb2face6
commit
765d368217
@ -125,7 +125,7 @@ long compat_ion_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
|
|||||||
{
|
{
|
||||||
long ret;
|
long ret;
|
||||||
|
|
||||||
if (!filp->f_op || !filp->f_op->unlocked_ioctl)
|
if (!filp->f_op->unlocked_ioctl)
|
||||||
return -ENOTTY;
|
return -ENOTTY;
|
||||||
|
|
||||||
switch (cmd) {
|
switch (cmd) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user