Skip to contentSkip to conversation

sched: rt: remove unnecessary ‘0’ values from err

PATCH New Li zeming 1 participant 1 message May 6, 2023 Scheduler

lore
Share & tools
lore

Li zeming

author
#0 lore raw

PATCH 1/1 sched: rt: remove unnecessary ‘0’ values from err

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

---
 kernel/sched/rt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/sched/rt.c +1 -1
index 0c35e60f06dc..662c565745fd 100644
@@ -2841,7 +2841,7 @@ static int __rt_schedulable(struct task_group *tg, u64 period, u64 runtime)
 static int tg_set_rt_bandwidth(struct task_group *tg,
 		u64 rt_period, u64 rt_runtime)
 {
-	int i, err = 0;
+	int i, err;
 
 	/*
 	 * Disallowing the root group RT runtime is BAD, it would disallow the
Signature · 1 line
2.18.2