summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManohar Vanga <manohar.vanga@cern.ch>2011-02-27 00:15:35 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2011-02-28 13:30:07 -0800
commit5bfcf90bfb1889885211e8a853c6b70500065fce (patch)
tree75f01e9cf1962e21a60d35cfc1b41400ec13fa19
parentb00464677923a7878b8c3164d7462b80f641bba6 (diff)
staging: vme: remove unreachable code
Remove some more unreachable code found in bridges/vme_ca91cx42.c and bridges/vme_tsi148.c Signed-off-by: Manohar Vanga <manohar.vanga@cern.ch> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--drivers/staging/vme/bridges/vme_ca91cx42.c3
-rw-r--r--drivers/staging/vme/bridges/vme_tsi148.c2
2 files changed, 0 insertions, 5 deletions
diff --git a/drivers/staging/vme/bridges/vme_ca91cx42.c b/drivers/staging/vme/bridges/vme_ca91cx42.c
index 42de83e6f1d9..5d734d9ed27d 100644
--- a/drivers/staging/vme/bridges/vme_ca91cx42.c
+++ b/drivers/staging/vme/bridges/vme_ca91cx42.c
@@ -560,8 +560,6 @@ static int ca91cx42_alloc_resource(struct vme_master_resource *image,
return 0;
- iounmap(image->kern_base);
- image->kern_base = NULL;
err_remap:
release_resource(&image->bus_resource);
err_resource:
@@ -1782,7 +1780,6 @@ static int ca91cx42_probe(struct pci_dev *pdev, const struct pci_device_id *id)
return 0;
- vme_unregister_bridge(ca91cx42_bridge);
err_reg:
ca91cx42_crcsr_exit(ca91cx42_bridge, pdev);
err_lm:
diff --git a/drivers/staging/vme/bridges/vme_tsi148.c b/drivers/staging/vme/bridges/vme_tsi148.c
index 26ea42fa784d..2df19eacbca5 100644
--- a/drivers/staging/vme/bridges/vme_tsi148.c
+++ b/drivers/staging/vme/bridges/vme_tsi148.c
@@ -869,8 +869,6 @@ static int tsi148_alloc_resource(struct vme_master_resource *image,
return 0;
- iounmap(image->kern_base);
- image->kern_base = NULL;
err_remap:
release_resource(&image->bus_resource);
err_resource: