diff options
author | Dan Carpenter <[email protected]> | 2022-08-11 13:56:06 +0300 |
---|---|---|
committer | Wim Van Sebroeck <[email protected]> | 2022-10-02 12:55:36 +0200 |
commit | 695bfff55327caf6e9b098ada32b39b1d81dafc4 (patch) | |
tree | 5062d7ac5ec4157af064185bc5420f7b85667320 /tools/testing/selftests/bpf/prog_tests/prog_array_init.c | |
parent | 22b455eecca0a3b73673898099d55db516eddbe1 (diff) |
watchdog: ftwdt010_wdt: fix test for platform_get_irq() failure
This code assumes that platform_get_irq() function returns zero on
failure. In fact, platform_get_irq() never returns zero. It returns
negative error codes or positive non-zero values on success.
Fixes: eca10ae6000d ("watchdog: add driver for Cortina Gemini watchdog")
Signed-off-by: Dan Carpenter <[email protected]>
Reviewed-by: Guenter Roeck <[email protected]>
Link: https://lore.kernel.org/r/YvTgRk/ABp62/hNA@kili
Signed-off-by: Guenter Roeck <[email protected]>
Signed-off-by: Wim Van Sebroeck <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions