mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-05-24 10:39:52 +00:00
media: core: v4l2-ioctl.c: use is_valid_ioctl()
In most cases the is_valid_ioctl() macro is used to check if an ioctl is valid, except in one place. Use it there as well as it makes the code easier to read. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
This commit is contained in:
parent
619200d5fe
commit
c464c2e3bb
1 changed files with 1 additions and 1 deletions
|
@ -3028,7 +3028,7 @@ static long __video_do_ioctl(struct file *file,
|
|||
if (v4l2_is_known_ioctl(cmd)) {
|
||||
info = &v4l2_ioctls[_IOC_NR(cmd)];
|
||||
|
||||
if (!test_bit(_IOC_NR(cmd), vfd->valid_ioctls) &&
|
||||
if (!is_valid_ioctl(vfd, cmd) &&
|
||||
!((info->flags & INFO_FL_CTRL) && vfh && vfh->ctrl_handler))
|
||||
goto done;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue