dmaengine: sf-pdma: Simplify the error handling path in 'sf_pdma_probe()'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Fri, 1 May 2020 10:08:24 +0000 (12:08 +0200)
committerVinod Koul <vkoul@kernel.org>
Wed, 13 May 2020 11:37:50 +0000 (17:07 +0530)
commitf2b5d503c04a28828af8e41fcd4a5d9fd978a78e
treef3cde762bd5ac0cfd65f4cb057ee2dee3454c622
parentd24224dea57108f96d13579f20206c339bb8e52f
dmaengine: sf-pdma: Simplify the error handling path in 'sf_pdma_probe()'

There is no need to explicitly free memory that have been 'devm_kzalloc'ed.
Simplify the probe function accordingly.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Tested-by: Green Wan <green.wan@sifive.com>
Reviewed-by: Green Wan <green.wan@sifive.com>
Link: https://lore.kernel.org/r/20200501100824.126534-1-christophe.jaillet@wanadoo.fr
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/sf-pdma/sf-pdma.c