[PATCH] sched: core: quota and parent_quota can be uninitialized and assigned values

From: Li zeming
Date: Tue May 28 2024 - 07:55:21 EST


quota and parent_quota are first assigned values, so their use is not
affected.

Signed-off-by: Li zeming <zeming@xxxxxxxxxxxx>
---
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