[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20230507201913.2779-1-zeming@nfschina.com>
Date: Mon, 8 May 2023 04:19:13 +0800
From: Li zeming <zeming@...china.com>
To: mingo@...hat.com, peterz@...radead.org, juri.lelli@...hat.com,
vincent.guittot@...aro.org, dietmar.eggemann@....com,
rostedt@...dmis.org, bsegall@...gle.com, mgorman@...e.de,
bristot@...hat.com, vschneid@...hat.com
Cc: linux-kernel@...r.kernel.org, Li zeming <zeming@...china.com>
Subject: [PATCH] sched: rt: remove unnecessary ‘0’ values from err
err is assigned first, so it does not need to initialize the assignment.
Signed-off-by: Li zeming <zeming@...china.com>
---
kernel/sched/rt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/sched/rt.c b/kernel/sched/rt.c
index 0c35e60f06dc..662c565745fd 100644
--- a/kernel/sched/rt.c
+++ b/kernel/sched/rt.c
@@ -2841,7 +2841,7 @@ static int __rt_schedulable(struct task_group *tg, u64 period, u64 runtime)
static int tg_set_rt_bandwidth(struct task_group *tg,
u64 rt_period, u64 rt_runtime)
{
- int i, err = 0;
+ int i, err;
/*
* Disallowing the root group RT runtime is BAD, it would disallow the
--
2.18.2
Powered by blists - more mailing lists