Commit 2bcc3b48 authored by Jason Wang's avatar Jason Wang Committed by Hans Verkuil
Browse files

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: default avatarJason Wang <wangborong@cdjrlc.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
parent d67614f2
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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: