Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7eee3e67 authored by Ingo Molnar's avatar Ingo Molnar
Browse files

sched: clean up __pick_last_entity() a bit



Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 70eee74b
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -202,14 +202,12 @@ static struct sched_entity *__pick_next_entity(struct cfs_rq *cfs_rq)

static inline struct sched_entity *__pick_last_entity(struct cfs_rq *cfs_rq)
{
	struct rb_node *last;
	struct sched_entity *se;
	struct rb_node *last = rb_last(&cfs_rq->tasks_timeline);

	last = rb_last(&cfs_rq->tasks_timeline);
	if (!last)
		return NULL;
	se = rb_entry(last, struct sched_entity, run_node);
	return se;

	return rb_entry(last, struct sched_entity, run_node);
}

/**************************************************************