mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-06 16:49:22 +00:00
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>
This commit is contained in:
parent
356ed04351
commit
cda3b91785
1 changed files with 2 additions and 2 deletions
|
@ -207,7 +207,7 @@ static int wdat_wdt_enable_reboot(struct wdat_wdt *wdat)
|
||||||
* recommeded to make it configurable through hardware register. We
|
* recommeded to make it configurable through hardware register. We
|
||||||
* enable reboot now if it is configrable, just in case.
|
* enable reboot now if it is configrable, just in case.
|
||||||
*/
|
*/
|
||||||
ret = wdat_wdt_run_action(wdat, ACPI_WDAT_SET_REBOOT, 0, 0);
|
ret = wdat_wdt_run_action(wdat, ACPI_WDAT_SET_REBOOT, 0, NULL);
|
||||||
if (ret && ret != -EOPNOTSUPP) {
|
if (ret && ret != -EOPNOTSUPP) {
|
||||||
dev_err(&wdat->pdev->dev,
|
dev_err(&wdat->pdev->dev,
|
||||||
"Failed to enable reboot when watchdog triggers\n");
|
"Failed to enable reboot when watchdog triggers\n");
|
||||||
|
@ -232,7 +232,7 @@ static void wdat_wdt_boot_status(struct wdat_wdt *wdat)
|
||||||
wdat->wdd.bootstatus = WDIOF_CARDRESET;
|
wdat->wdd.bootstatus = WDIOF_CARDRESET;
|
||||||
|
|
||||||
/* Clear the boot status in case BIOS did not do it */
|
/* Clear the boot status in case BIOS did not do it */
|
||||||
ret = wdat_wdt_run_action(wdat, ACPI_WDAT_SET_STATUS, 0, 0);
|
ret = wdat_wdt_run_action(wdat, ACPI_WDAT_SET_STATUS, 0, NULL);
|
||||||
if (ret && ret != -EOPNOTSUPP)
|
if (ret && ret != -EOPNOTSUPP)
|
||||||
dev_err(&wdat->pdev->dev, "Failed to clear boot status\n");
|
dev_err(&wdat->pdev->dev, "Failed to clear boot status\n");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue