sched: deadline: Remove unnecessary ‘NULL’ values from p
PATCH 1/1 sched: deadline: Remove unnecessary ‘NULL’ values from p
p is assigned first, so it does not need to initialize the assignment.
Signed-off-by Li kunyu <[email protected]>
--- kernel/sched/deadline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/sched/deadline.c +1 -1
@@ -2104,7 +2104,7 @@ static int pick_dl_task(struct rq *rq, struct task_struct *p, int cpu)*/ static struct task_struct *pick_earliest_pushable_dl_task (struct rq *rq,int cpu) { -struct task_struct *p =NULL ; +struct task_struct *p;struct rb_node *next_node;if (!has_pushable_dl_tasks (rq))
Signature · 1 line
2.18.2