Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Kernel Liteos M
提交
f7af2cdf
K
Kernel Liteos M
项目概览
OpenHarmony
/
Kernel Liteos M
大约 1 年 前同步成功
通知
20
Star
28
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel Liteos M
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
f7af2cdf
编写于
12月 30, 2022
作者:
O
openharmony_ci
提交者:
Gitee
12月 30, 2022
浏览文件
操作
浏览文件
下载
差异文件
!983 修复codecheck告警
Merge pull request !983 from 夏不白/codecheck
上级
6633aabf
07091c5a
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
5 addition
and
6 deletion
+5
-6
components/cpup/los_cpup.c
components/cpup/los_cpup.c
+1
-1
components/fs/littlefs/lfs_adapter.c
components/fs/littlefs/lfs_adapter.c
+0
-1
components/fs/vfs/vfs_fs.c
components/fs/vfs/vfs_fs.c
+4
-4
未找到文件。
components/cpup/los_cpup.c
浏览文件 @
f7af2cdf
...
...
@@ -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
)
...
...
components/fs/littlefs/lfs_adapter.c
浏览文件 @
f7af2cdf
...
...
@@ -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
;
...
...
components/fs/vfs/vfs_fs.c
浏览文件 @
f7af2cdf
...
...
@@ -212,7 +212,7 @@ static size_t GetCanonicalPath(const char *cwd, const char *path, char *buf, siz
}
#endif
static
in
line
in
t
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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录