diff options
author | Aman Sharma <[email protected]> | 2020-03-12 00:49:02 +0530 |
---|---|---|
committer | Bjorn Helgaas <[email protected]> | 2020-05-12 08:14:43 -0500 |
commit | 0584bff09629666eea97c7ac428e55b00df211f5 (patch) | |
tree | 0f1ffb119ca31d5fbb5b996a976eafaa120b98c7 /drivers/usb/cdns3/cdns3-debug.h | |
parent | a85a6c86c25be2d2a5f9c31491f612ce0edc7869 (diff) |
PCI: Check for platform_get_irq() failure consistently
The platform_get_irq*() interfaces return either a negative error number or
a valid IRQ. 0 is not a valid return value, so check for "< 0" to detect
failure as recommended by the function documentation.
On failure, return the error number from platform_get_irq*() instead of
making up a new one.
Link: https://lore.kernel.org/r/[email protected]
[bhelgaas: commit log, squash into one patch]
Signed-off-by: Aman Sharma <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
Acked-by: Linus Walleij <[email protected]>
Cc: Richard Zhu <[email protected]>
Cc: Lucas Stach <[email protected]>
Cc: Thierry Reding <[email protected]>
Cc: Karthikeyan Mitran <[email protected]>
Cc: Hou Zhiqiang <[email protected]>
Cc: Thomas Petazzoni <[email protected]>
Cc: Ryder Lee <[email protected]>
Cc: Marc Gonzalez <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions