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 <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>
This commit is contained in:
Colin Ian King 2019-06-12 10:42:18 -04:00 коммит произвёл Mauro Carvalho Chehab
Родитель b046ec51f9
Коммит 89a9f68883
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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) static int codec_mpeg12_start(struct amvdec_session *sess)
{ {
struct amvdec_core *core = sess->core; struct amvdec_core *core = sess->core;
struct codec_mpeg12 *mpeg12 = sess->priv; struct codec_mpeg12 *mpeg12;
int ret; int ret;
mpeg12 = kzalloc(sizeof(*mpeg12), GFP_KERNEL); mpeg12 = kzalloc(sizeof(*mpeg12), GFP_KERNEL);