forked from Minki/linux
media: ipu3-cio2: Remove explicit type from frame size checks
Now that the values are unsigned, we can remove the explicit cast to u32. Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
parent
44e6d472ce
commit
40f072e181
@ -1282,9 +1282,8 @@ static int cio2_subdev_set_fmt(struct v4l2_subdev *sd,
|
||||
}
|
||||
}
|
||||
|
||||
fmt->format.width = min_t(u32, fmt->format.width, CIO2_IMAGE_MAX_WIDTH);
|
||||
fmt->format.height = min_t(u32, fmt->format.height,
|
||||
CIO2_IMAGE_MAX_LENGTH);
|
||||
fmt->format.width = min(fmt->format.width, CIO2_IMAGE_MAX_WIDTH);
|
||||
fmt->format.height = min(fmt->format.height, CIO2_IMAGE_MAX_LENGTH);
|
||||
fmt->format.field = V4L2_FIELD_NONE;
|
||||
|
||||
mutex_lock(&q->subdev_lock);
|
||||
|
Loading…
Reference in New Issue
Block a user