Commit ffd3f638 authored by Colin Ian King's avatar Colin Ian King Committed by Hans Verkuil
Browse files

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: default avatarColin Ian King <colin.i.king@gmail.com>
Reviewed-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
parent 3a7c5c21
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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_ctx *ctx = vb2_get_drv_priv(vb->vb2_queue);
	struct mtk_jpeg_q_data *q_data = NULL;
	struct mtk_jpeg_q_data *q_data = NULL;
	struct v4l2_plane_pix_format plane_fmt = {};
	struct v4l2_plane_pix_format plane_fmt;
	int i;
	int i;


	q_data = mtk_jpeg_get_q_data(ctx, vb->vb2_queue->type);
	q_data = mtk_jpeg_get_q_data(ctx, vb->vb2_queue->type);