Combine the sanity checks for valid io addresses into one if().
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
return result;
info->plx_regbase = pci_resource_start(pcidev, 1);
- if (!info->plx_regbase)
- return -ENODEV;
-
dev->iobase = pci_resource_start(pcidev, 2);
- if (!dev->iobase)
- return -ENODEV;
-
info->timer_regbase = pci_resource_start(pcidev, 3);
- if (!info->timer_regbase)
+ if (!info->plx_regbase || !dev->iobase || !info->timer_regbase)
return -ENODEV;
dev->irq = pcidev->irq;