提交 60093543 编写于 作者: Z zhumingxian

fix warning: variable 'ret' set but not used

Signed-off-by: Nzhumingxian <zhumingxian@ohos.com.cn>
上级 3137109c
......@@ -200,12 +200,11 @@ int LoadDefaultParams(const char *fileName, uint32_t mode)
{
PARAM_CHECK(fileName != NULL, return -1, "Invalid filename for load");
PARAM_LOGI("load default parameters %s.", fileName);
int ret = 0;
struct stat st;
if ((stat(fileName, &st) == 0) && !S_ISDIR(st.st_mode)) {
ret = ProcessParamFile(fileName, &mode);
(void)ProcessParamFile(fileName, &mode);
} else {
ret = ReadFileInDir(fileName, ".para", ProcessParamFile, &mode);
(void)ReadFileInDir(fileName, ".para", ProcessParamFile, &mode);
}
// load security label
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册