From: Colin Ian King Date: Sun, 30 Jan 2022 23:11:11 +0000 (+0000) Subject: media: mtk-jpeg: remove redundant initialization of variable plane_fmt X-Git-Tag: v6.1-rc5~1763^2~86^2~23 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ffd3f6385aaf19756bbf06d9d0dcb8bd7db88349;p=platform%2Fkernel%2Flinux-starfive.git media: mtk-jpeg: remove redundant initialization of variable plane_fmt The variable plane_fmt is being initialized with a value that is never read, it is being re-assigned a new value on each iteration of a for loop. The initialization is redundant and can be removed. Signed-off-by: Colin Ian King Reviewed-by: Dan Carpenter Signed-off-by: Hans Verkuil --- diff --git a/drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c b/drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c index d532f86..ab5485d 100644 --- a/drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c +++ b/drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c @@ -680,7 +680,7 @@ static int mtk_jpeg_buf_prepare(struct vb2_buffer *vb) { struct mtk_jpeg_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue); struct mtk_jpeg_q_data *q_data = NULL; - struct v4l2_plane_pix_format plane_fmt = {}; + struct v4l2_plane_pix_format plane_fmt; int i; q_data = mtk_jpeg_get_q_data(ctx, vb->vb2_queue->type);