We're assigning the return value of several functions to the variable ret, but when there's an error we print the name of err. As app_main doesn't return anything, drop the ret variable completely and use err everywhere.
Fixes: 36ee1f70bf1d ("main: read Wi-Fi credentials from NVS")
Fixes: ae4314713b8b ("main: get WAS URL from NVS")
We're assigning the return value of several functions to the variable ret, but when there's an error we print the name of err. As app_main doesn't return anything, drop the ret variable completely and use err everywhere.
Fixes: 36ee1f70bf1d ("main: read Wi-Fi credentials from NVS") Fixes: ae4314713b8b ("main: get WAS URL from NVS")