sched: core: quota and parent_quota can be uninitialized and assigned values
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.
Signed-off-by Li zeming <[email protected]>
--- kernel/sched/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/sched/core.c +1 -1
@@ -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