Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Jason Wang and committed by
Hans Verkuil
2bcc3b48 d67614f2

-1
-1
drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.c
··· 519 519 GFP_ATOMIC); 520 520 if (!cfg_stm) 521 521 goto err; 522 - memset(cfg_stm, 0, MXC_JPEG_MAX_CFG_STREAM); 523 522 jpeg->slot_data[slot].cfg_stream_vaddr = cfg_stm; 524 523 525 524 skip_alloc: