diff options
author | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-08-11 09:30:24 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-08-11 09:35:11 -0400 |
commit | b0c49e2acc6e0e1bf5ae80a3afd63bdcfce19883 (patch) | |
tree | 1c546bc14a106fc9c47a49ae888681407debeb69 | |
parent | 919db5c3199cbd7cf503cdc42f3467a524d1f9ff (diff) |
[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 <mchehab@osg.samsung.com>
-rw-r--r-- | drivers/media/pci/mantis/mantis_dma.c | 4 |
1 files changed, 1 insertions, 3 deletions
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) | |||
140 | /* Stop RISC Engine */ | 140 | /* Stop RISC Engine */ |
141 | mmwrite(0, MANTIS_DMA_CTL); | 141 | mmwrite(0, MANTIS_DMA_CTL); |
142 | 142 | ||
143 | goto err; | 143 | return err; |
144 | } | 144 | } |
145 | 145 | ||
146 | return 0; | 146 | return 0; |
147 | err: | ||
148 | return err; | ||
149 | } | 147 | } |
150 | EXPORT_SYMBOL_GPL(mantis_dma_init); | 148 | EXPORT_SYMBOL_GPL(mantis_dma_init); |
151 | 149 | ||