[PATCH 1/1] lib: remove leading spaces before tabs

From: Zhen Lei
Date: Tue Jun 08 2021 - 03:14:40 EST


1) Run the following command to find and remove the leading spaces before
tabs:
find lib/ -type f | xargs sed -r -i 's/^[ ]+\t/\t/'
2) Manually check and correct if necessary

Signed-off-by: Zhen Lei <thunder.leizhen@xxxxxxxxxx>
---
lib/string.c | 4 ++--
lib/zlib_deflate/deflate.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/string.c b/lib/string.c
index 7548eb715ddb..b900c6c5efdf 100644
--- a/lib/string.c
+++ b/lib/string.c
@@ -982,7 +982,7 @@ void *memscan(void *addr, int c, size_t size)
p++;
size--;
}
- return (void *)p;
+ return (void *)p;
}
EXPORT_SYMBOL(memscan);
#endif
@@ -1051,7 +1051,7 @@ void *memchr(const void *s, int c, size_t n)
{
const unsigned char *p = s;
while (n-- != 0) {
- if ((unsigned char)c == *p++) {
+ if ((unsigned char)c == *p++) {
return (void *)(p - 1);
}
}
diff --git a/lib/zlib_deflate/deflate.c b/lib/zlib_deflate/deflate.c
index 8a878d0d892c..3fa66fc7fbd7 100644
--- a/lib/zlib_deflate/deflate.c
+++ b/lib/zlib_deflate/deflate.c
@@ -888,7 +888,7 @@ static block_state deflate_stored(
s->lookahead = 0;

/* Emit a stored block if pending_buf will be full: */
- max_start = s->block_start + max_block_size;
+ max_start = s->block_start + max_block_size;
if (s->strstart == 0 || (ulg)s->strstart >= max_start) {
/* strstart == 0 is possible when wraparound on 16-bit machine */
s->lookahead = (uInt)(s->strstart - max_start);
--
2.25.1