media: staging: media: meson: remove redundant initialization of mpeg12
authorColin Ian King <colin.king@canonical.com>
Wed, 12 Jun 2019 14:42:18 +0000 (10:42 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 21 Jun 2019 20:37:34 +0000 (16:37 -0400)
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 <colin.king@canonical.com>
Acked-by: Maxime Jourdan <mjourdan@baylibre.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/staging/media/meson/vdec/codec_mpeg12.c

index 5398fbf..48869cc 100644 (file)
@@ -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);