dmaengine: qcom_hidma: Simplify error handling path in hidma_probe
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Mon, 27 Apr 2020 11:10:43 +0000 (13:10 +0200)
committerVinod Koul <vkoul@kernel.org>
Mon, 27 Apr 2020 16:08:29 +0000 (21:38 +0530)
There is no need to call 'hidma_debug_uninit()' in the error handling
path. 'hidma_debug_init()' has not been called yet.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/20200427111043.70218-1-christophe.jaillet@wanadoo.fr
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/qcom/hidma.c

index 411f91fde734584e533d49168a167181f78c0fb3..87490e125bc3cc964014a156b25e59e5a3112ef8 100644 (file)
@@ -897,7 +897,6 @@ uninit:
        if (msi)
                hidma_free_msis(dmadev);
 
-       hidma_debug_uninit(dmadev);
        hidma_ll_uninit(dmadev->lldev);
 dmafree:
        if (dmadev)