lkml.org 
[lkml]   [2021]   [Jun]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 1/1] kernel/relay.c: remove leading spaces before tabs
Date
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

\
 
 \ /
  Last update: 2021-06-08 10:21    [W:0.024 / U:1.524 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site