Commit 96a3713e authored by Syam Sidhardhan's avatar Syam Sidhardhan Committed by Vinod Koul
Browse files

dma: imx-dma: Remove redundant NULL check before kfree



kfree on NULL pointer is a no-op.

Signed-off-by: default avatarSyam Sidhardhan <s.syam@samsung.com>
Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
parent 88ff6ab4
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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);

	if (imxdmac->sg_list)
	kfree(imxdmac->sg_list);

	imxdmac->sg_list = kcalloc(periods + 1,