pcmcia: vrc4173_cardu: Fix error path for pci_release_regions and pci_disable_device
authorRahul Ruikar <rahul.ruikar@gmail.com>
Sun, 26 Sep 2010 16:50:30 +0000 (22:20 +0530)
committerDominik Brodowski <linux@dominikbrodowski.net>
Tue, 5 Oct 2010 13:49:51 +0000 (15:49 +0200)
commit1ab488de544b7f94b4f8e5aed2b178cac685802f
treea2bb987928f4a8eb2a447b01898d578a7becbd45
parent1c4a77bf54a61dde135740a563b6ec03382604e8
pcmcia: vrc4173_cardu: Fix error path for pci_release_regions and pci_disable_device

- pci_release_regions called during return error path.
- pci_disable_device called for cases where earlier it was enabled.
- code duplication avoided/reduced by adding resource release at goto statements.

Signed-off-by: Rahul Ruikar <rahul.ruikar@gmail.com>
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
drivers/pcmcia/vrc4173_cardu.c