[PATCH 1/1] signal: remove leading spaces before tabs

From: Zhen Lei
Date: Tue Jun 08 2021 - 04:16:54 EST


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

Signed-off-by: Zhen Lei <thunder.leizhen@xxxxxxxxxx>
---
kernel/signal.c | 32 ++++++++++++++++----------------
1 file changed, 16 insertions(+), 16 deletions(-)

diff --git a/kernel/signal.c b/kernel/signal.c
index 9569f736eb5d..6b871bdbacda 100644
--- a/kernel/signal.c
+++ b/kernel/signal.c
@@ -1967,8 +1967,8 @@ bool do_notify_parent(struct task_struct *tsk, int sig)

BUG_ON(sig == -1);

- /* do_notify_parent_cldstop should have been called instead. */
- BUG_ON(task_is_stopped_or_traced(tsk));
+ /* do_notify_parent_cldstop should have been called instead. */
+ BUG_ON(task_is_stopped_or_traced(tsk));

BUG_ON(!tsk->ptrace &&
(tsk->group_leader != tsk || !thread_group_empty(tsk)));
@@ -2099,20 +2099,20 @@ static void do_notify_parent_cldstop(struct task_struct *tsk,
info.si_utime = nsec_to_clock_t(utime);
info.si_stime = nsec_to_clock_t(stime);

- info.si_code = why;
- switch (why) {
- case CLD_CONTINUED:
- info.si_status = SIGCONT;
- break;
- case CLD_STOPPED:
- info.si_status = tsk->signal->group_exit_code & 0x7f;
- break;
- case CLD_TRAPPED:
- info.si_status = tsk->exit_code & 0x7f;
- break;
- default:
- BUG();
- }
+ info.si_code = why;
+ switch (why) {
+ case CLD_CONTINUED:
+ info.si_status = SIGCONT;
+ break;
+ case CLD_STOPPED:
+ info.si_status = tsk->signal->group_exit_code & 0x7f;
+ break;
+ case CLD_TRAPPED:
+ info.si_status = tsk->exit_code & 0x7f;
+ break;
+ default:
+ BUG();
+ }

sighand = parent->sighand;
spin_lock_irqsave(&sighand->siglock, flags);
--
2.25.1