[media] mantis: remove an uneeded goto
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 11 Aug 2015 13:30:24 +0000 (10:30 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 11 Aug 2015 13:35:11 +0000 (10:35 -0300)
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 <mchehab@osg.samsung.com>
drivers/media/pci/mantis/mantis_dma.c

index 87990ece5848957baf4af40dd5100f356466b901..2ce310b0a02289c45eff97875e2b53b791f753f4 100644 (file)
@@ -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);