Merge pull request #4341 from mysterywolf/unlink

[libc][iar][gcc] 优化remove函数
This commit is contained in:
Bernard Xiong
2021-02-15 09:28:48 +08:00
committed by GitHub
2 changed files with 7 additions and 10 deletions

View File

@@ -197,12 +197,9 @@ int
_unlink_r(struct _reent *ptr, const char *file)
{
#ifndef RT_USING_DFS
return 0;
return -1;
#else
int rc;
rc = unlink(file);
return rc;
return unlink(file);
#endif
}