PCI: altera: Remove redundant platform_get_resource() return value check
authorBjorn Helgaas <bhelgaas@google.com>
Thu, 6 Oct 2016 18:29:02 +0000 (13:29 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 12 Oct 2016 00:54:23 +0000 (19:54 -0500)
commitdbeb4bd8bae584408ce7e09b29510e2b5cb85bbb
treef29ee967df99ef2d39ac82d90a71aecf2be6df78
parentee34264eec4838e336e0af756e6ec84d5159ee41
PCI: altera: Remove redundant platform_get_resource() return value check

devm_ioremap_resource() fails gracefully when given a NULL resource
pointer, so we don't need to check separately for failure from
platform_get_resource_byname().  Remove the redundant check.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/host/pcie-altera.c