modify sample goto

This commit is contained in:
ethan.du 2021-03-18 17:47:24 +08:00
parent 9e33b6e793
commit a4761faafe
1 changed files with 3 additions and 3 deletions

View File

@ -28,7 +28,7 @@ int main(int argc, char **argv)
if(APP_OK != status)
{
log_write(LOG_ERROR, "app_common_init fail");
goto end;
return APP_ERR;
}
log_write(LOG_INFO, "productSN:%s, deviceSN:%s",app_get_productSN(),app_get_deviceSN());
@ -39,7 +39,7 @@ int main(int argc, char **argv)
if(APP_OK != status)
{
log_write(LOG_ERROR, "app_register_cb fail");
goto end;
return APP_ERR;
}
//获取应用配置信息
@ -47,7 +47,7 @@ int main(int argc, char **argv)
if (!app_info)
{
log_write(LOG_ERROR, "parse app info fail");
goto end;
return APP_ERR;
}
/*