Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+0 −3
Original line number Original line Diff line number Diff line
@@ -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:
+0 −2
Original line number Original line Diff line number Diff line
@@ -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: