[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20240528115350.1927-1-zeming@nfschina.com>
Date: Tue, 28 May 2024 19:53:50 +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: core: quota and parent_quota can be uninitialized and assigned values
quota and parent_quota are first assigned values, so their use is not
affected.
Signed-off-by: Li zeming <zeming@...china.com>
---
kernel/sched/core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index 140e6373fce2..faa5dcffd2b7 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -11039,7 +11039,7 @@ static int tg_cfs_schedulable_down(struct task_group *tg, void *data)
{
struct cfs_schedulable_data *d = data;
struct cfs_bandwidth *cfs_b = &tg->cfs_bandwidth;
- s64 quota = 0, parent_quota = -1;
+ s64 quota, parent_quota;
if (!tg->parent) {
quota = RUNTIME_INF;
--
2.18.2
Powered by blists - more mailing lists