瀏覽代碼

Staging: vme: fix compiler warnings in vme_ca91cx42.c

It's causing people to ignore problems in the file, so get rid
of them so it's obvious something is wrong in the future.

Cc: Martyn Welch <martyn.welch@gefanuc.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Greg Kroah-Hartman 15 年之前
父節點
當前提交
70d7aa889f
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      drivers/staging/vme/bridges/vme_ca91cx42.c

+ 2 - 1
drivers/staging/vme/bridges/vme_ca91cx42.c

@@ -1171,7 +1171,9 @@ static int ca91cx42_probe(struct pci_dev *pdev, const struct pci_device_id *id)
 	vme_unregister_bridge(ca91cx42_bridge);
 	vme_unregister_bridge(ca91cx42_bridge);
 err_reg:
 err_reg:
 	ca91cx42_crcsr_exit(pdev);
 	ca91cx42_crcsr_exit(pdev);
+#if 0
 err_crcsr:
 err_crcsr:
+#endif
 err_lm:
 err_lm:
 	/* resources are stored in link list */
 	/* resources are stored in link list */
 	list_for_each(pos, &(ca91cx42_bridge->lm_resources)) {
 	list_for_each(pos, &(ca91cx42_bridge->lm_resources)) {
@@ -1226,7 +1228,6 @@ void ca91cx42_remove(struct pci_dev *pdev)
 	struct vme_slave_resource *slave_image;
 	struct vme_slave_resource *slave_image;
 	struct vme_dma_resource *dma_ctrlr;
 	struct vme_dma_resource *dma_ctrlr;
 	struct vme_lm_resource *lm;
 	struct vme_lm_resource *lm;
-	int i;
 
 
 	/* Turn off Ints */
 	/* Turn off Ints */
 	iowrite32(0, ca91cx42_bridge->base + LINT_EN);
 	iowrite32(0, ca91cx42_bridge->base + LINT_EN);