Skip to content

Commit

Permalink
staging: vme: remove unreachable code
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Manohar Vanga authored and Greg Kroah-Hartman committed Feb 28, 2011
1 parent b004646 commit 5bfcf90
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
3 changes: 0 additions & 3 deletions drivers/staging/vme/bridges/vme_ca91cx42.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down
2 changes: 0 additions & 2 deletions drivers/staging/vme/bridges/vme_tsi148.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 5bfcf90

Please sign in to comment.