Skip to contentSkip to conversation

kernel/relay.c: remove leading spaces before tabs

PATCH New Zhen Lei 1 participant 1 message Jun 8, 2021 Relay

lore
Share & tools
lore

Zhen Lei

author
#0 lore raw

PATCH 1/1 kernel/relay.c: remove leading spaces before tabs

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

---
 kernel/relay.c | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
kernel/relay.c +8 -8
index 4a5e58be9731..b6cd0afe575f 100644
@@ -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;
 }
 
Signature · 1 line
2.25.1