浏览代码

[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>
Mauro Carvalho Chehab 10 年之前
父节点
当前提交
b0c49e2acc
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 1 3
      drivers/media/pci/mantis/mantis_dma.c

+ 1 - 3
drivers/media/pci/mantis/mantis_dma.c

@@ -140,12 +140,10 @@ int mantis_dma_init(struct mantis_pci *mantis)
 		/* Stop RISC Engine */
 		/* Stop RISC Engine */
 		mmwrite(0, MANTIS_DMA_CTL);
 		mmwrite(0, MANTIS_DMA_CTL);
 
 
-		goto err;
+		return err;
 	}
 	}
 
 
 	return 0;
 	return 0;
-err:
-	return err;
 }
 }
 EXPORT_SYMBOL_GPL(mantis_dma_init);
 EXPORT_SYMBOL_GPL(mantis_dma_init);