Skip to contentSkip to conversation

sched: core: remove unnecessary ‘0’ values from ret

PATCH New Li zeming 1 participant 1 message Apr 24, 2023 Scheduler

lore
Share & tools
lore

Li zeming

author
#0 lore raw

PATCH 1/1 sched: core: remove unnecessary ‘0’ values from ret

ret is assigned first, so it does not need to initialize the assignment.

---
 kernel/sched/core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/sched/core.c +1 -1
index 6c2b6b797d93..3249c1272e57 100644
@@ -10687,7 +10687,7 @@ static int __cfs_schedulable(struct task_group *tg, u64 period, u64 runtime);
 static int tg_set_cfs_bandwidth(struct task_group *tg, u64 period, u64 quota,
 				u64 burst)
 {
-	int i, ret = 0, runtime_enabled, runtime_was_enabled;
+	int i, ret, runtime_enabled, runtime_was_enabled;
 	struct cfs_bandwidth *cfs_b = &tg->cfs_bandwidth;
 
 	if (tg == &root_task_group)
Signature · 1 line
2.18.2