PCI: designware: Remove redundant platform_get_resource() return value check
authorWei Yongjun <weiyj.lk@gmail.com>
Thu, 28 Jul 2016 16:14:54 +0000 (16:14 +0000)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 23 Aug 2016 21:55:18 +0000 (16:55 -0500)
commit639c5323257f940a8627e86c982f6b93e9e2615c
tree5cd56b2270d3ae985b4bf43e8ab7d0fa31741a48
parent68a0bfec72cb4f117198ae31df114dad4c5e405d
PCI: designware: 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.

[bhelgaas: changelog]
Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/host/pcie-designware-plat.c