mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-27 04:22:58 +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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user