All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] lib: remove leading spaces before tabs
@ 2021-06-08  7:14 Zhen Lei
  2021-06-08  8:44 ` Andy Shevchenko
  0 siblings, 1 reply; 14+ messages in thread
From: Zhen Lei @ 2021-06-08  7:14 UTC (permalink / raw)
  To: Andy Shevchenko, Greg Kroah-Hartman, Andrew Morton, linux-kernel; +Cc: Zhen Lei

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



^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2021-06-10 12:27 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-08  7:14 [PATCH 1/1] lib: remove leading spaces before tabs Zhen Lei
2021-06-08  8:44 ` 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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.