[PATCH 6/8] sched: Remove unneeded braces
From: John B. Wyatt IV
Date: Wed Oct 28 2020 - 19:49:14 EST
Remove unneeded braces and the spaces for the bottom brace to silence
checkpatch warnings.
Issue reported by checkpatch.
Signed-off-by: John B. Wyatt IV <jbwyatt4@xxxxxxxxx>
---
kernel/sched/core.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index 61758b5478d8..7bf20110fdf5 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -3588,9 +3588,9 @@ int sched_fork(unsigned long clone_flags, struct task_struct *p)
if (current->core_task_cookie) {
/* If it is not CLONE_THREAD fork, assign a unique per-task tag. */
- if (!(clone_flags & CLONE_THREAD)) {
+ if (!(clone_flags & CLONE_THREAD))
return sched_core_share_tasks(p, p);
- }
+
/* Otherwise share the parent's per-task tag. */
return sched_core_share_tasks(p, current);
}
--
2.28.0