From: Mauro Carvalho Chehab Date: Tue, 11 Aug 2015 13:30:24 +0000 (-0300) Subject: [media] mantis: remove an uneeded goto X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b0c49e2acc6e0e1bf5ae80a3afd63bdcfce19883;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git [media] mantis: remove an uneeded goto Gotos makes a little harder to check the code. In this particular case, the goto is doing nothing but jumping into a return. Instead, just replace the goto by the return, making it simpler. Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/pci/mantis/mantis_dma.c b/drivers/media/pci/mantis/mantis_dma.c index 87990ece5848..2ce310b0a022 100644 --- a/drivers/media/pci/mantis/mantis_dma.c +++ b/drivers/media/pci/mantis/mantis_dma.c @@ -140,12 +140,10 @@ int mantis_dma_init(struct mantis_pci *mantis) /* Stop RISC Engine */ mmwrite(0, MANTIS_DMA_CTL); - goto err; + return err; } return 0; -err: - return err; } EXPORT_SYMBOL_GPL(mantis_dma_init);