From: Zhen Lei <thunder.leizhen@huawei.com>
To: Andy Shevchenko <andy@kernel.org>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Andrew Morton <akpm@linux-foundation.org>,
linux-kernel <linux-kernel@vger.kernel.org>
Cc: Zhen Lei <thunder.leizhen@huawei.com>
Subject: [PATCH 1/1] lib: remove leading spaces before tabs
Date: Tue, 8 Jun 2021 15:14:30 +0800 [thread overview]
Message-ID: <20210608071430.12687-1-thunder.leizhen@huawei.com> (raw)
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@huawei.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
next reply other threads:[~2021-06-08 7:14 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-08 7:14 Zhen Lei [this message]
2021-06-08 8:44 ` [PATCH 1/1] lib: remove leading spaces before tabs Andy Shevchenko
2021-06-08 9:00 ` Leizhen (ThunderTown)
2021-06-08 16:03 ` Joe Perches
2021-06-09 5:15 ` Leizhen (ThunderTown)
2021-06-09 5:52 ` Joe Perches
2021-06-09 6:21 ` Leizhen (ThunderTown)
2021-06-09 6:35 ` Joe Perches
2021-06-09 10:30 ` Andy Shevchenko
2021-06-09 13:31 ` Leizhen (ThunderTown)
2021-06-09 21:44 ` Joe Perches
2021-06-10 9:10 ` Andy Shevchenko
2021-06-10 12:05 ` Joe Perches
2021-06-10 12:26 ` Andy Shevchenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210608071430.12687-1-thunder.leizhen@huawei.com \
--to=thunder.leizhen@huawei.com \
--cc=akpm@linux-foundation.org \
--cc=andy@kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).