[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210608071430.12687-1-thunder.leizhen@huawei.com>
Date: Tue, 8 Jun 2021 15:14:30 +0800
From: Zhen Lei <thunder.leizhen@...wei.com>
To: Andy Shevchenko <andy@...nel.org>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Andrew Morton <akpm@...ux-foundation.org>,
linux-kernel <linux-kernel@...r.kernel.org>
CC: Zhen Lei <thunder.leizhen@...wei.com>
Subject: [PATCH 1/1] lib: remove leading spaces before tabs
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@...wei.com>
---
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
Powered by blists - more mailing lists