summaryrefslogtreecommitdiffstats
path: root/drivers/watchdog/machzwd.c
diff options
context:
space:
mode:
authorHariprasad Kelam <hariprasad.kelam@gmail.com>2019-04-06 15:14:15 +0200
committerWim Van Sebroeck <wim@linux-watchdog.org>2019-05-05 21:02:13 +0200
commit33052fbb4f25148ffa8fa417aeaab33b9dc3f37e (patch)
treead5166bd9c72b381f0062284f998ae6b187c3abe /drivers/watchdog/machzwd.c
parentwatchdog: rtd119x_wdt: Fix remove function (diff)
downloadlinux-33052fbb4f25148ffa8fa417aeaab33b9dc3f37e.tar.xz
linux-33052fbb4f25148ffa8fa417aeaab33b9dc3f37e.zip
watchdog: machzwd : fix warning Using plain integer as NULL pointer
Changes passing function argument 0 to NULL to avoid below sparse warning CHECK drivers/watchdog//machzwd.c drivers/watchdog//machzwd.c:321:25: warning: Using plain integer as NULL pointer Signed-off-by: Hariprasad Kelam <hariprasad.kelam@gmail.com> Reviewed-by: Mukesh Ojha <mojha@codeaurora.org> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
Diffstat (limited to 'drivers/watchdog/machzwd.c')
-rw-r--r--drivers/watchdog/machzwd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/watchdog/machzwd.c b/drivers/watchdog/machzwd.c
index 88d823d87a4b..c3926d0cc016 100644
--- a/drivers/watchdog/machzwd.c
+++ b/drivers/watchdog/machzwd.c
@@ -318,7 +318,7 @@ static long zf_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
case WDIOC_GETBOOTSTATUS:
return put_user(0, p);
case WDIOC_KEEPALIVE:
- zf_ping(0);
+ zf_ping(NULL);
break;
default:
return -ENOTTY;