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>
This commit is contained in:
parent
b004646779
commit
5bfcf90bfb
|
@ -560,8 +560,6 @@ static int ca91cx42_alloc_resource(struct vme_master_resource *image,
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
iounmap(image->kern_base);
|
|
||||||
image->kern_base = NULL;
|
|
||||||
err_remap:
|
err_remap:
|
||||||
release_resource(&image->bus_resource);
|
release_resource(&image->bus_resource);
|
||||||
err_resource:
|
err_resource:
|
||||||
|
@ -1782,7 +1780,6 @@ static int ca91cx42_probe(struct pci_dev *pdev, const struct pci_device_id *id)
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
vme_unregister_bridge(ca91cx42_bridge);
|
|
||||||
err_reg:
|
err_reg:
|
||||||
ca91cx42_crcsr_exit(ca91cx42_bridge, pdev);
|
ca91cx42_crcsr_exit(ca91cx42_bridge, pdev);
|
||||||
err_lm:
|
err_lm:
|
||||||
|
|
|
@ -869,8 +869,6 @@ static int tsi148_alloc_resource(struct vme_master_resource *image,
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
iounmap(image->kern_base);
|
|
||||||
image->kern_base = NULL;
|
|
||||||
err_remap:
|
err_remap:
|
||||||
release_resource(&image->bus_resource);
|
release_resource(&image->bus_resource);
|
||||||
err_resource:
|
err_resource:
|
||||||
|
|
Loading…
Reference in New Issue