From: Laurent Pinchart Date: Mon, 6 Jul 2020 18:35:33 +0000 (+0200) Subject: media: ti-vpe: cal: Turn boolean variable into bool X-Git-Tag: v5.10.7~1904^2~163 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fcc6d6f71d1f2363c557d8638174b14239c58021;p=platform%2Fkernel%2Flinux-rpi.git media: ti-vpe: cal: Turn boolean variable into bool The found_port variable contains a boolean value, make it a bool. Signed-off-by: Laurent Pinchart Reviewed-by: Tomi Valkeinen 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 ee6f700..edb1034 100644 --- a/drivers/media/platform/ti-vpe/cal.c +++ b/drivers/media/platform/ti-vpe/cal.c @@ -2074,7 +2074,8 @@ static int of_cal_create_instance(struct cal_ctx *ctx, int inst) struct v4l2_fwnode_endpoint *endpoint; struct v4l2_async_subdev *asd; u32 regval = 0; - int ret, index, found_port = 0, lane; + int ret, index, lane; + bool found_port = false; parent = pdev->dev.of_node; @@ -2099,7 +2100,7 @@ static int of_cal_create_instance(struct cal_ctx *ctx, int inst) ctx_dbg(3, ctx, "port:%d inst:%d :%d\n", index, inst, regval); if ((regval == inst) && (index == inst)) { - found_port = 1; + found_port = true; break; } }