Commit 5bfcf90b authored by Manohar Vanga's avatar Manohar Vanga Committed by Greg Kroah-Hartman

staging: vme: remove unreachable code

Remove some more unreachable code found in bridges/vme_ca91cx42.c
and bridges/vme_tsi148.c
Signed-off-by: default avatarManohar Vanga <manohar.vanga@cern.ch>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent b0046467
......@@ -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:
......
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment