[PATCH] sched: deadline: Remove unnecessary ‘NULL’ values from p
From: Li kunyu
Date: Sun Jun 04 2023 - 23:52:18 EST
p is assigned first, so it does not need to initialize the assignment.
Signed-off-by: Li kunyu <kunyu@xxxxxxxxxxxx>
---
kernel/sched/deadline.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/sched/deadline.c b/kernel/sched/deadline.c
index b94a498f8cd9..cbb13a23a5f9 100644
--- a/kernel/sched/deadline.c
+++ b/kernel/sched/deadline.c
@@ -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))
--
2.18.2