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

Li zeming posted 1 patch 1 year, 6 months ago
kernel/sched/core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] sched: core: quota and parent_quota can be uninitialized and assigned values
Posted by Li zeming 1 year, 6 months ago
quota and parent_quota are first assigned values, so their use is not
affected.

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