diff options
author | Miaoqian Lin <linmq006@gmail.com> | 2022-06-01 15:30:26 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-06-10 16:29:56 +0300 |
commit | 1c245358ce0b13669f6d1625f7a4e05c41f28980 (patch) | |
tree | 6e6f2c386c645cec875725b850f63724fb715325 /scripts/gdb/linux/tasks.py | |
parent | 6497e7776441e0567c02b9c12b133d2ba51918df (diff) | |
download | linux-1c245358ce0b13669f6d1625f7a4e05c41f28980.tar.xz |
misc: atmel-ssc: Fix IRQ check in ssc_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: eb1f2930609b ("Driver for the Atmel on-chip SSC on AT32AP and AT91")
Reviewed-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Link: https://lore.kernel.org/r/20220601123026.7119-1-linmq006@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/gdb/linux/tasks.py')
0 files changed, 0 insertions, 0 deletions