sched: deadline: Remove unnecessary ‘NULL’ values from p
Commit Message
p is assigned first, so it does not need to initialize the assignment.
Signed-off-by: Li kunyu <kunyu@nfschina.com>
---
kernel/sched/deadline.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -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))