Skip to contentSkip to conversation

sched: core: quota and parent_quota can be uninitialized and assigned values

PATCH New Li zeming 1 participant 1 message May 28, 2024 Scheduler

lore
Share & tools
lore

Li zeming

author
#0 lore raw

PATCH 1/1 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.

---
 kernel/sched/core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/sched/core.c +1 -1
index 140e6373fce2..faa5dcffd2b7 100644
@@ -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;
Signature · 1 line
2.18.2