diff mbox series

[v5,05/14] tools/nolibc: string.h: clean up multiple whitespaces with tab

Message ID bb93eb9b6684bd72dc62ddbc7a7b09b16eb5bc17.1687957589.git.falcon@tinylab.org (mailing list archive)
State Handled Elsewhere
Headers show
Series [v5,01/14] tools/nolibc: sys.h: add a syscall return helper | expand

Checks

Context Check Description
conchuod/tree_selection fail Failed to apply to next/pending-fixes, riscv/for-next or riscv/master

Commit Message

Zhangjin Wu June 28, 2023, 1:17 p.m. UTC
To align with Linux code style and let scripts/checkpatch.pl happy, the
multiple whitespaces in arch-<ARCH>.h files are cleaned up with tab.

It is detected by:

    $ grep '  *\\$' tools/include/nolibc/string.h

Signed-off-by: Zhangjin Wu <falcon@tinylab.org>
---
 tools/include/nolibc/string.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
diff mbox series

Patch

diff --git a/tools/include/nolibc/string.h b/tools/include/nolibc/string.h
index 0c2e06c7c477..e8f471ce09f3 100644
--- a/tools/include/nolibc/string.h
+++ b/tools/include/nolibc/string.h
@@ -148,10 +148,10 @@  size_t strlen(const char *str)
  */
 #if defined(__OPTIMIZE__)
 #define nolibc_strlen(x) strlen(x)
-#define strlen(str) ({                          \
-	__builtin_constant_p((str)) ?           \
-		__builtin_strlen((str)) :       \
-		nolibc_strlen((str));           \
+#define strlen(str) ({				\
+	__builtin_constant_p((str)) ?		\
+		__builtin_strlen((str)) :	\
+		nolibc_strlen((str));		\
 })
 #endif