{
struct pxps *pxp = video_get_drvdata(video_devdata(file));
- if ((o->index < 0) || (o->index > 1))
+ if (o->index > 1)
return -EINVAL;
memset(o, 0, sizeof(struct v4l2_output));
u32 size;
int ret, bpp;
- if ((i < 0) || (i > 1))
+ if (i > 1)
return -EINVAL;
/* Output buffer is same format as fbdev */
struct v4l2_fmtdesc *fmt)
{
enum v4l2_buf_type type = fmt->type;
- int index = fmt->index;
+ unsigned int index = fmt->index;
- if ((fmt->index < 0) || (fmt->index >= ARRAY_SIZE(pxp_s0_formats)))
+ if (fmt->index >= ARRAY_SIZE(pxp_s0_formats))
return -EINVAL;
memset(fmt, 0, sizeof(struct v4l2_fmtdesc));