2022-07-19 11:55:46

by Xin Gao

[permalink] [raw]
Subject: [PATCH] sched:Unneeded semicolon

Unneeded semicolon

Signed-off-by: Xin Gao <[email protected]>
---
kernel/sched/core_sched.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/sched/core_sched.c b/kernel/sched/core_sched.c
index 38a2cec21014..8d2dc54043de 100644
--- a/kernel/sched/core_sched.c
+++ b/kernel/sched/core_sched.c
@@ -204,7 +204,7 @@ int sched_core_share_pid(unsigned int cmd, pid_t pid, enum pid_type type,
default:
err = -EINVAL;
goto out;
- };
+ }

if (type == PIDTYPE_PID) {
__sched_core_set(task, cookie);
--
2.30.2


Subject: [tip: sched/core] sched/core: Remove superfluous semicolon

The following commit has been merged into the sched/core branch of tip:

Commit-ID: 8648f92a66a323ed01903d2cbb248cdbe2f312d9
Gitweb: https://git.kernel.org/tip/8648f92a66a323ed01903d2cbb248cdbe2f312d9
Author: Xin Gao <[email protected]>
AuthorDate: Tue, 19 Jul 2022 19:10:44 +08:00
Committer: Ingo Molnar <[email protected]>
CommitterDate: Thu, 04 Aug 2022 11:02:08 +02:00

sched/core: Remove superfluous semicolon

Signed-off-by: Xin Gao <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
---
kernel/sched/core_sched.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/sched/core_sched.c b/kernel/sched/core_sched.c
index 93878cb..1ec807f 100644
--- a/kernel/sched/core_sched.c
+++ b/kernel/sched/core_sched.c
@@ -205,7 +205,7 @@ int sched_core_share_pid(unsigned int cmd, pid_t pid, enum pid_type type,
default:
err = -EINVAL;
goto out;
- };
+ }

if (type == PIDTYPE_PID) {
__sched_core_set(task, cookie);