diff options
author | Colin Ian King <colin.king@canonical.com> | 2019-06-12 10:42:18 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2019-06-21 16:37:34 -0400 |
commit | 89a9f68883bbaba645352a90016f496d48c75be2 (patch) | |
tree | 73a3b4142448d31ff35e6075d80653308421a22a /drivers/staging | |
parent | b046ec51f9bb53a63a61dbc11733879aa4c7004c (diff) |
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>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/media/meson/vdec/codec_mpeg12.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |