aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_subr.c
diff options
context:
space:
mode:
authorMiaoqian Lin <[email protected]>2022-01-14 06:28:40 +0000
committerNishanth Menon <[email protected]>2022-02-02 13:37:04 -0600
commitc3d66a164c726cc3b072232d3b6d87575d194084 (patch)
tree616bf5d5c9000e4fd927adc3cf17006bdab588b2 /net/lapb/lapb_subr.c
parenta181bcfca937b34467e6cd63d7de6073176616e1 (diff)
soc: ti: wkup_m3_ipc: Fix IRQ check in wkup_m3_ipc_probe
platform_get_irq() returns negative error number instead 0 on failure. And the doc of platform_get_irq() provides a usage example: int irq = platform_get_irq(pdev, 0); if (irq < 0) return irq; Fix the check of return value to catch errors correctly. Fixes: cdd5de500b2c ("soc: ti: Add wkup_m3_ipc driver") Signed-off-by: Miaoqian Lin <[email protected]> Signed-off-by: Nishanth Menon <[email protected]> Acked-by: Dave Gerlach <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions