[PATCH] sched: core: Remove unnecessary ‘0’ values from ret

From: Li zeming
Date: Tue May 28 2024 - 03:37:40 EST


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

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 346159a24705..140e6373fce2 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -10808,7 +10808,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)
--
2.18.2