Skip to content

Commit

Permalink
V4L/DVB (6218): V4L: Int if: Use -ENOIOCTLCMD for nonexistent ioctls
Browse files Browse the repository at this point in the history
Signed-off-by: Sakari Ailus <sakari.ailus@nokia.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
  • Loading branch information
Sakari Ailus authored and Mauro Carvalho Chehab committed Oct 10, 2007
1 parent 08256ea commit 61c310d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/media/video/v4l2-int-device.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ static v4l2_int_ioctl_func *find_ioctl(struct v4l2_int_slave *slave, int cmd,

static int no_such_ioctl_0(struct v4l2_int_device *d)
{
return -EINVAL;
return -ENOIOCTLCMD;
}

int v4l2_int_ioctl_0(struct v4l2_int_device *d, int cmd)
Expand All @@ -155,7 +155,7 @@ int v4l2_int_ioctl_0(struct v4l2_int_device *d, int cmd)

static int no_such_ioctl_1(struct v4l2_int_device *d, void *arg)
{
return -EINVAL;
return -ENOIOCTLCMD;
}

int v4l2_int_ioctl_1(struct v4l2_int_device *d, int cmd, void *arg)
Expand Down

0 comments on commit 61c310d

Please sign in to comment.