]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: vme: remove unreachable code
authorManohar Vanga <manohar.vanga@cern.ch>
Sat, 26 Feb 2011 23:15:35 +0000 (00:15 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 28 Feb 2011 21:30:07 +0000 (13:30 -0800)
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>
drivers/staging/vme/bridges/vme_ca91cx42.c
drivers/staging/vme/bridges/vme_tsi148.c

index 42de83e6f1d943d337452a37f3f4bb5add451d48..5d734d9ed27ded428d7169ee2379fe375f4992d4 100644 (file)
@@ -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:
index 26ea42fa784d702b0122bfe3121a1d71d2675fc7..2df19eacbca57a35beea698947928aab49615f1e 100644 (file)
@@ -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: