From: Hariprasad Kelam Date: Sat, 6 Apr 2019 13:14:15 +0000 (+0530) Subject: watchdog: machzwd : fix warning Using plain integer as NULL pointer X-Git-Tag: microblaze-v5.4-rc1~738^2~100 X-Git-Url: http://git.monstr.eu/?a=commitdiff_plain;h=33052fbb4f25148ffa8fa417aeaab33b9dc3f37e;p=linux-2.6-microblaze.git 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 Reviewed-by: Mukesh Ojha Reviewed-by: Guenter Roeck Signed-off-by: Guenter Roeck Signed-off-by: Wim Van Sebroeck --- 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;