From e15100543fa78d4827e6b7e2c8eb58c10380e29f Mon Sep 17 00:00:00 2001 From: chenrun1 Date: Tue, 20 Aug 2024 10:34:44 +0800 Subject: [PATCH] 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 --- libs/libc/stdio/lib_remove.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libs/libc/stdio/lib_remove.c b/libs/libc/stdio/lib_remove.c index 89a965092c..c455b1dbc4 100644 --- a/libs/libc/stdio/lib_remove.c +++ b/libs/libc/stdio/lib_remove.c @@ -55,9 +55,7 @@ int remove(FAR const char *path) * more frequently the necessary action. */ - if (unlink(path) != 0 && /* If it is indeed a directory... */ - (get_errno() != EISDIR || /* ...try to remove it. */ - rmdir(path) != 0)) + if (unlink(path) != 0 && (get_errno() != EISDIR || rmdir(path) != 0)) { /* Cannot remove the object for whatever reason. */