mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 11:56:10 +08:00
Kernel module should prefer functions with nx/kmm prefix
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Alin Jerpelea
parent
15480e51cf
commit
0536953ded
@@ -560,12 +560,8 @@ static int hostfs_rpmsg_stat_handler(FAR struct rpmsg_endpoint *ept,
|
||||
struct stat buf;
|
||||
int ret;
|
||||
|
||||
ret = stat(msg->pathname, &buf);
|
||||
if (ret)
|
||||
{
|
||||
ret = -get_errno();
|
||||
}
|
||||
else
|
||||
ret = nx_stat(msg->pathname, &buf, 1);
|
||||
if (ret >= 0)
|
||||
{
|
||||
msg->buf = buf;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user