diff --git a/bsp/nxp/imx/imx6ull-smart/drivers/drv_wdt.c b/bsp/nxp/imx/imx6ull-smart/drivers/drv_wdt.c index ec11dbdc75..f61cc84fac 100644 --- a/bsp/nxp/imx/imx6ull-smart/drivers/drv_wdt.c +++ b/bsp/nxp/imx/imx6ull-smart/drivers/drv_wdt.c @@ -168,7 +168,7 @@ static rt_err_t imx6ull_wdog_control(watchdog_t *wdt, int cmd, void *args) } break; default: - return RT_ERROR; + return -RT_ERROR; } return RT_EOK;