All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] kernel/relay.c: remove leading spaces before tabs
@ 2021-06-08  8:20 Zhen Lei
  0 siblings, 0 replies; only message in thread
From: Zhen Lei @ 2021-06-08  8:20 UTC (permalink / raw)
  To: Andrew Morton, linux-kernel; +Cc: Zhen Lei

1) Run the following command to find and remove the leading spaces before
   tabs:
   sed -r -i 's/^[ ]+\t/\t/' kernel/relay.c
2) Manually check and correct if necessary

Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
---
 kernel/relay.c | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/kernel/relay.c b/kernel/relay.c
index 4a5e58be9731..b6cd0afe575f 100644
--- a/kernel/relay.c
+++ b/kernel/relay.c
@@ -378,10 +378,10 @@ static struct dentry *relay_create_buf_file(struct rchan *chan,
  */
 static struct rchan_buf *relay_open_buf(struct rchan *chan, unsigned int cpu)
 {
- 	struct rchan_buf *buf = NULL;
+	struct rchan_buf *buf = NULL;
 	struct dentry *dentry;
 
- 	if (chan->is_global)
+	if (chan->is_global)
 		return *per_cpu_ptr(chan->buf, 0);
 
 	buf = relay_create_buf(chan);
@@ -402,18 +402,18 @@ static struct rchan_buf *relay_open_buf(struct rchan *chan, unsigned int cpu)
 			goto free_buf;
 	}
 
- 	buf->cpu = cpu;
- 	__relay_reset(buf, 1);
+	buf->cpu = cpu;
+	__relay_reset(buf, 1);
 
- 	if(chan->is_global) {
+	if(chan->is_global) {
 		*per_cpu_ptr(chan->buf, 0) = buf;
- 		buf->cpu = 0;
-  	}
+		buf->cpu = 0;
+	}
 
 	return buf;
 
 free_buf:
- 	relay_destroy_buf(buf);
+	relay_destroy_buf(buf);
 	return NULL;
 }
 
-- 
2.25.1



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-06-08  8:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-08  8:20 [PATCH 1/1] kernel/relay.c: remove leading spaces before tabs Zhen Lei

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.