Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

V4L/DVB (6218): V4L: Int if: Use -ENOIOCTLCMD for nonexistent ioctls

Signed-off-by: Sakari Ailus <sakari.ailus@nokia.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>

authored by

Sakari Ailus and committed by
Mauro Carvalho Chehab
61c310dc 08256ea0

+2 -2
+2 -2
drivers/media/video/v4l2-int-device.c
··· 143 143 144 144 static int no_such_ioctl_0(struct v4l2_int_device *d) 145 145 { 146 - return -EINVAL; 146 + return -ENOIOCTLCMD; 147 147 } 148 148 149 149 int v4l2_int_ioctl_0(struct v4l2_int_device *d, int cmd) ··· 155 155 156 156 static int no_such_ioctl_1(struct v4l2_int_device *d, void *arg) 157 157 { 158 - return -EINVAL; 158 + return -ENOIOCTLCMD; 159 159 } 160 160 161 161 int v4l2_int_ioctl_1(struct v4l2_int_device *d, int cmd, void *arg)