mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-12-09 08:33:35 +00:00
media: imx-jpeg: Remove unnecessary memset() after dma_alloc_coherent()
The `dma_alloc_coherent()' already zeroes out memory for us, so we don't need the redundant memset(). Signed-off-by: Jason Wang <wangborong@cdjrlc.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
This commit is contained in:
parent
d67614f276
commit
2bcc3b48c8
@ -519,7 +519,6 @@ static bool mxc_jpeg_alloc_slot_data(struct mxc_jpeg_dev *jpeg,
|
||||
GFP_ATOMIC);
|
||||
if (!cfg_stm)
|
||||
goto err;
|
||||
memset(cfg_stm, 0, MXC_JPEG_MAX_CFG_STREAM);
|
||||
jpeg->slot_data[slot].cfg_stream_vaddr = cfg_stm;
|
||||
|
||||
skip_alloc:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user