PCI: dwc: artpec6: Fix return value check in artpec6_add_pcie_ep()

In case of error, the function devm_ioremap() returns NULL pointer
not ERR_PTR(). The IS_ERR() test in the return value check should be
replaced with NULL test.

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
This commit is contained in:
Wei Yongjun 2018-01-03 07:33:35 +00:00 • committed by Lorenzo Pieralisi
commit c68febfd68