commit | 122c7668322d6df8a8d0bd2abbe82db919abfc89 | [log] [tgz] |
---|---|---|
author | Bin Meng <bmeng.cn@gmail.com> | Fri Jan 08 01:03:20 2016 -0800 |
committer | Tom Rini <trini@konsulko.com> | Fri Jan 08 10:15:49 2016 -0500 |
tree | 0cbda1ea40c3e631b86c42804765b429ca6404ef | |
parent | a0271575cf17f1f364726b496f8c9ab731c5dce0 [diff] |
pci: imx: Adjust the return value when imx_pcie_addr_valid() fails When trying to access non-existent/unsupported PCI devices in imx_pcie_read_config(), when imx_pcie_addr_valid() fails it returns error code and fills in the result with 0xffffffff manually. But it really should return zero to upper layer codes. Reported-by: Fabio Estevam <fabio.estevam@nxp.com> Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Tested-by: Fabio Estevam <fabio.estevam@nxp.com>