!983 修复codecheck告警

Merge pull request !983 from 夏不白/codecheck
This commit is contained in:
openharmony_ci 2022-12-30 06:19:55 +00:00 committed by Gitee
commit f7af2cdf9b
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 5 additions and 6 deletions

View File

@ -564,7 +564,6 @@ int LfsClose(struct File *file)
} }
ret = lfs_file_close((lfs_t *)mp->mData, lfsHandle); ret = lfs_file_close((lfs_t *)mp->mData, lfsHandle);
if (ret != 0) { if (ret != 0) {
errno = LittlefsErrno(ret); errno = LittlefsErrno(ret);
ret = (int)LOS_NOK; ret = (int)LOS_NOK;

View File

@ -212,7 +212,7 @@ static size_t GetCanonicalPath(const char *cwd, const char *path, char *buf, siz
} }
#endif #endif
static inline int VfsPathCheck(const char *path, bool isFile) static int VfsPathCheck(const char *path, bool isFile)
{ {
size_t len; size_t len;
if ((path == NULL) || (path[0] == '\0')) { if ((path == NULL) || (path[0] == '\0')) {