From: Colin Ian King Date: Wed, 12 Jun 2019 14:42:18 +0000 (-0400) Subject: media: staging: media: meson: remove redundant initialization of mpeg12 X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=89a9f68883bbaba645352a90016f496d48c75be2;p=openwrt%2Fstaging%2Fblogic.git media: staging: media: meson: remove redundant initialization of mpeg12 The pointer mpeg12 is being initialized however that value is never read and mpeg12 is being re-assigned almost immediately afterwards. Remove the redundant initialization. Signed-off-by: Colin Ian King Acked-by: Maxime Jourdan Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/staging/media/meson/vdec/codec_mpeg12.c b/drivers/staging/media/meson/vdec/codec_mpeg12.c index 5398fbf7ce20..48869cc3d973 100644 --- a/drivers/staging/media/meson/vdec/codec_mpeg12.c +++ b/drivers/staging/media/meson/vdec/codec_mpeg12.c @@ -63,7 +63,7 @@ static void codec_mpeg12_recycle(struct amvdec_core *core, u32 buf_idx) static int codec_mpeg12_start(struct amvdec_session *sess) { struct amvdec_core *core = sess->core; - struct codec_mpeg12 *mpeg12 = sess->priv; + struct codec_mpeg12 *mpeg12; int ret; mpeg12 = kzalloc(sizeof(*mpeg12), GFP_KERNEL);