summaryrefslogtreecommitdiff
path: root/include/linux/tracehook.h
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2016-07-14 13:10:46 +0300
committerBjorn Helgaas <bhelgaas@google.com>2016-07-25 20:28:12 +0300
commitcec6dba24b42fec76820d0ad01b6480c9c81d764 (patch)
tree157176eaf66a217f27e8b5da96bcdca9bb4ceaf4 /include/linux/tracehook.h
parentaf8c34ce6ae32addda3788d54a7e340cad22516b (diff)
downloadlinux-cec6dba24b42fec76820d0ad01b6480c9c81d764.tar.xz
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 'include/linux/tracehook.h')
0 files changed, 0 insertions, 0 deletions