summaryrefslogtreecommitdiffstats
path: root/mm/z3fold.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2022-08-11 13:56:06 +0300
committerWim Van Sebroeck <wim@linux-watchdog.org>2022-10-02 12:55:36 +0200
commit695bfff55327caf6e9b098ada32b39b1d81dafc4 (patch)
tree5062d7ac5ec4157af064185bc5420f7b85667320 /mm/z3fold.c
parent22b455eecca0a3b73673898099d55db516eddbe1 (diff)
downloadlinux-695bfff55327caf6e9b098ada32b39b1d81dafc4.tar.bz2
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 <dan.carpenter@oracle.com> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Link: https://lore.kernel.org/r/YvTgRk/ABp62/hNA@kili Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
Diffstat (limited to 'mm/z3fold.c')
0 files changed, 0 insertions, 0 deletions