mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
v4l: Remove reference to bkl ioctl in compat ioctl handling
There are no more users of struct file_operations:ioctl. These can be safely removed. Signed-off-by: Frederic Weisbecker <[email protected]> Cc: Arnd Bergmann <[email protected]> Cc: Mauro Carvalho Chehab <[email protected]> Cc: John Kacur <[email protected]> Cc: Hans Verkuil <[email protected]>
This commit is contained in:
parent
02d6d685fc
commit
c6d7ba8b12
1 changed files with 1 additions and 6 deletions
|
|
@ -228,11 +228,6 @@ static long native_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
|
|||
|
||||
if (file->f_op->unlocked_ioctl)
|
||||
ret = file->f_op->unlocked_ioctl(file, cmd, arg);
|
||||
else if (file->f_op->ioctl) {
|
||||
lock_kernel();
|
||||
ret = file->f_op->ioctl(file->f_path.dentry->d_inode, file, cmd, arg);
|
||||
unlock_kernel();
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
@ -973,7 +968,7 @@ long v4l2_compat_ioctl32(struct file *file, unsigned int cmd, unsigned long arg)
|
|||
{
|
||||
long ret = -ENOIOCTLCMD;
|
||||
|
||||
if (!file->f_op->ioctl && !file->f_op->unlocked_ioctl)
|
||||
if (!file->f_op->unlocked_ioctl)
|
||||
return ret;
|
||||
|
||||
switch (cmd) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue