diff options
author | 2016-07-14 12:10:46 +0200 | |
---|---|---|
committer | 2016-07-25 12:28:12 -0500 | |
commit | cec6dba24b42fec76820d0ad01b6480c9c81d764 (patch) | |
tree | 157176eaf66a217f27e8b5da96bcdca9bb4ceaf4 /arch/powerpc/mm/hash_native_64.c | |
parent | Linux 4.7-rc2 (diff) | |
download | linux-dev-cec6dba24b42fec76820d0ad01b6480c9c81d764.tar.xz linux-dev-cec6dba24b42fec76820d0ad01b6480c9c81d764.zip |
PCI: xilinx: Fix return value in case of error
In xilinx_pcie_init_irq_domain(), the pattern used to check and return
error is:
if (!var) {
dev_err(...);
return PTR_ERR(var);
}
So the returned value in case of error is always 0, which means 'success'.
Change it to return -ENODEV instead.
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Sören Brinkmann <soren.brinkmann@xilinx.com>
Diffstat (limited to 'arch/powerpc/mm/hash_native_64.c')
0 files changed, 0 insertions, 0 deletions