summaryrefslogtreecommitdiffstats
path: root/drivers/staging/media
diff options
context:
space:
mode:
authorHariprasad Kelam <hariprasad.kelam@gmail.com>2019-07-24 23:06:02 -0400
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2019-07-25 11:58:16 -0400
commitaa0e9e72733b069a655a3fe9167f69de103830cc (patch)
tree79790dff057727b830ebe0a32b1f1dac84a498d2 /drivers/staging/media
parent24f6f93a19e86779da94d97f4adccf3ab2662a77 (diff)
downloadlinux-aa0e9e72733b069a655a3fe9167f69de103830cc.tar.bz2
media: staging: media: hantro: Remove call to memset after dma_alloc_coherent
fix below issue reported by coccicheck /drivers/staging/media/hantro/hantro_vp8.c:149:16-34: WARNING: dma_alloc_coherent use in aux_buf -> cpu already zeroes out memory, so memset is not needed Signed-off-by: Hariprasad Kelam <hariprasad.kelam@gmail.com> Reviewed-by: Boris Brezillon <boris.brezillon@collabora.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/media')
-rw-r--r--drivers/staging/media/hantro/hantro_vp8.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/staging/media/hantro/hantro_vp8.c b/drivers/staging/media/hantro/hantro_vp8.c
index 66c45335d871..363dddaac794 100644
--- a/drivers/staging/media/hantro/hantro_vp8.c
+++ b/drivers/staging/media/hantro/hantro_vp8.c
@@ -151,8 +151,6 @@ int hantro_vp8_dec_init(struct hantro_ctx *ctx)
if (!aux_buf->cpu)
return -ENOMEM;
- memset(aux_buf->cpu, 0, aux_buf->size);
-
/*
* Allocate probability table buffer,
* total 1208 bytes, 4K page is far enough.