未验证 提交 f7af2cdf 编写于 作者: O openharmony_ci 提交者: Gitee

!983 修复codecheck告警

Merge pull request !983 from 夏不白/codecheck
......@@ -170,7 +170,7 @@ LITE_OS_SEC_TEXT_INIT UINT32 OsCpupInit()
return LOS_OK;
}
/* The calculation time unit is changed to us to decouple the influence of
/* The calculation time unit is changed to us to decouple the influence of
* system frequency modulation on CPUP
*/
STATIC UINT64 CpupTimeUsGet(VOID)
......
......@@ -564,7 +564,6 @@ int LfsClose(struct File *file)
}
ret = lfs_file_close((lfs_t *)mp->mData, lfsHandle);
if (ret != 0) {
errno = LittlefsErrno(ret);
ret = (int)LOS_NOK;
......
......@@ -212,7 +212,7 @@ static size_t GetCanonicalPath(const char *cwd, const char *path, char *buf, siz
}
#endif
static inline int VfsPathCheck(const char *path, bool isFile)
static int VfsPathCheck(const char *path, bool isFile)
{
size_t len;
if ((path == NULL) || (path[0] == '\0')) {
......@@ -561,7 +561,7 @@ int open(const char *path, int flags, ...)
#endif
int ret = VfsOpen(path, flags);
return MapToPosixRet(ret);
return MapToPosixRet(ret);
}
FUNC_ALIAS(open, _open, (const char *path, int flags, ...), int);
......@@ -630,7 +630,7 @@ ssize_t read(int fd, void *buff, size_t bytes)
ret = VfsRead(fd, buff, bytes);
}
return MapToPosixRet(ret);
return MapToPosixRet(ret);
}
FUNC_ALIAS(read, _read, (int fd, void *buff, size_t bytes), ssize_t);
......@@ -1093,7 +1093,7 @@ int fcntl(int fd, int cmd, ...)
va_start(ap, cmd);
if (fd < CONFIG_NFILE_DESCRIPTORS) {
filep = VfsAttachFileReady(fd);
ret = VfsVfcntl(filep, cmd, ap);
ret = VfsVfcntl(filep, cmd, ap);
VfsDetachFile(filep);
} else {
#ifndef LOSCFG_NET_LWIP_SACK
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册