diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2016-07-14 23:18:27 +0200 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2016-07-25 19:29:51 +0200 |
commit | 991bfef82f17194fe2a2f161b9552d9633ff21b9 (patch) | |
tree | 7d6562026d75394d5cb980285ed6b8ec37d0d61b /arch/arm/mach-imx/mx1.h | |
parent | Linux 4.7-rc2 (diff) | |
download | linux-991bfef82f17194fe2a2f161b9552d9633ff21b9.tar.xz linux-991bfef82f17194fe2a2f161b9552d9633ff21b9.zip |
PCI: dra7xx: Fix return value in case of error
In dra7xx_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>
Reviewed-by: Kishon Vijay Abraham I <kishon@ti.com>
Diffstat (limited to 'arch/arm/mach-imx/mx1.h')
0 files changed, 0 insertions, 0 deletions