media: ti-vpe: cal: remove unneeded assignment
authorTomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Thu, 4 Mar 2021 13:45:19 +0000 (14:45 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 22 Mar 2021 09:16:59 +0000 (10:16 +0100)
v4l2_fill_pix_format() already copies mbus_fmt.field, so no need to do
it again.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/ti-vpe/cal-video.c

index 779f1e1..47bea40 100644 (file)
@@ -640,7 +640,6 @@ static int cal_ctx_v4l2_init_formats(struct cal_ctx *ctx)
        v4l2_fill_pix_format(&ctx->v_fmt.fmt.pix, &mbus_fmt);
        ctx->v_fmt.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
        ctx->v_fmt.fmt.pix.pixelformat = fmtinfo->fourcc;
-       ctx->v_fmt.fmt.pix.field = mbus_fmt.field;
        cal_calc_format_size(ctx, fmtinfo, &ctx->v_fmt);
        ctx->fmtinfo = fmtinfo;