From: Laurent Pinchart Date: Mon, 6 Jul 2020 18:36:42 +0000 (+0200) Subject: media: ti-vpe: cal: Use 'unsigned int' type instead of 'unsigned' X-Git-Tag: v5.9-rc1~94^2~94 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f4d9837d872523e8ef8bd1e0156eb90e2fed8dc3;p=thirdparty%2Fkernel%2Flinux.git media: ti-vpe: cal: Use 'unsigned int' type instead of 'unsigned' Specifying 'int' explicitly is generally preferred in the kernel for unsigned int types. Fix the only wrong occurrence. Signed-off-by: Laurent Pinchart Reviewed-by: Benoit Parrot Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/platform/ti-vpe/cal.c b/drivers/media/platform/ti-vpe/cal.c index ade76739de47f..fdb40c85de9b8 100644 --- a/drivers/media/platform/ti-vpe/cal.c +++ b/drivers/media/platform/ti-vpe/cal.c @@ -1776,7 +1776,7 @@ static int cal_queue_setup(struct vb2_queue *vq, unsigned int sizes[], struct device *alloc_devs[]) { struct cal_ctx *ctx = vb2_get_drv_priv(vq); - unsigned size = ctx->v_fmt.fmt.pix.sizeimage; + unsigned int size = ctx->v_fmt.fmt.pix.sizeimage; if (vq->num_buffers + *nbuffers < 3) *nbuffers = 3 - vq->num_buffers;