lib_remove.c:fix code style error
Summary: Warning: /home/runner/work/nuttx/nuttx/nuttx/libs/libc/stdio/lib_remove.c:59:32: warning: Wrong column position of comment right of code Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
This commit is contained in:
parent
0a4770b44a
commit
e15100543f
@ -55,9 +55,7 @@ int remove(FAR const char *path)
|
|||||||
* more frequently the necessary action.
|
* more frequently the necessary action.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (unlink(path) != 0 && /* If it is indeed a directory... */
|
if (unlink(path) != 0 && (get_errno() != EISDIR || rmdir(path) != 0))
|
||||||
(get_errno() != EISDIR || /* ...try to remove it. */
|
|
||||||
rmdir(path) != 0))
|
|
||||||
{
|
{
|
||||||
/* Cannot remove the object for whatever reason. */
|
/* Cannot remove the object for whatever reason. */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user