mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-04 20:19:47 +08:00
dma: imx-dma: Remove redundant NULL check before kfree
kfree on NULL pointer is a no-op. Signed-off-by: Syam Sidhardhan <s.syam@samsung.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
This commit is contained in:
parent
88ff6ab4a8
commit
96a3713ebc
@ -859,7 +859,6 @@ static struct dma_async_tx_descriptor *imxdma_prep_dma_cyclic(
|
|||||||
|
|
||||||
desc = list_first_entry(&imxdmac->ld_free, struct imxdma_desc, node);
|
desc = list_first_entry(&imxdmac->ld_free, struct imxdma_desc, node);
|
||||||
|
|
||||||
if (imxdmac->sg_list)
|
|
||||||
kfree(imxdmac->sg_list);
|
kfree(imxdmac->sg_list);
|
||||||
|
|
||||||
imxdmac->sg_list = kcalloc(periods + 1,
|
imxdmac->sg_list = kcalloc(periods + 1,
|
||||||
|
Loading…
Reference in New Issue
Block a user