Skip to content

Commit cda3b91

Browse files
Wei Yongjunrafaeljw
authored andcommitted
watchdog: wdat_wdt: Fix warning for using 0 as NULL
Fixes the following sparse warnings: drivers/watchdog/wdat_wdt.c:210:66: warning: Using plain integer as NULL pointer drivers/watchdog/wdat_wdt.c:235:66: warning: Using plain integer as NULL pointer Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 356ed04 commit cda3b91

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/watchdog/wdat_wdt.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ static int wdat_wdt_enable_reboot(struct wdat_wdt *wdat)
207207
* recommeded to make it configurable through hardware register. We
208208
* enable reboot now if it is configrable, just in case.
209209
*/
210-
ret = wdat_wdt_run_action(wdat, ACPI_WDAT_SET_REBOOT, 0, 0);
210+
ret = wdat_wdt_run_action(wdat, ACPI_WDAT_SET_REBOOT, 0, NULL);
211211
if (ret && ret != -EOPNOTSUPP) {
212212
dev_err(&wdat->pdev->dev,
213213
"Failed to enable reboot when watchdog triggers\n");
@@ -232,7 +232,7 @@ static void wdat_wdt_boot_status(struct wdat_wdt *wdat)
232232
wdat->wdd.bootstatus = WDIOF_CARDRESET;
233233

234234
/* Clear the boot status in case BIOS did not do it */
235-
ret = wdat_wdt_run_action(wdat, ACPI_WDAT_SET_STATUS, 0, 0);
235+
ret = wdat_wdt_run_action(wdat, ACPI_WDAT_SET_STATUS, 0, NULL);
236236
if (ret && ret != -EOPNOTSUPP)
237237
dev_err(&wdat->pdev->dev, "Failed to clear boot status\n");
238238
}

0 commit comments

Comments
 (0)