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

Commit 0f317143 authored by Lin Ming's avatar Lin Ming Committed by Ingo Molnar
Browse files

sched: Cleanup duplicate local variable in [enqueue|dequeue]_task_fair



No need to define a new "cfs_rq" variable in the "for" block.
Just use the one at the top of the function.

Signed-off-by: default avatarLin Ming <ming.m.lin@intel.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1311297271.3938.1352.camel@minggr.sh.intel.com


Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 2bd2d6f2
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1317,7 +1317,7 @@ enqueue_task_fair(struct rq *rq, struct task_struct *p, int flags)
	}

	for_each_sched_entity(se) {
		struct cfs_rq *cfs_rq = cfs_rq_of(se);
		cfs_rq = cfs_rq_of(se);

		update_cfs_load(cfs_rq, 0);
		update_cfs_shares(cfs_rq);
@@ -1360,7 +1360,7 @@ static void dequeue_task_fair(struct rq *rq, struct task_struct *p, int flags)
	}

	for_each_sched_entity(se) {
		struct cfs_rq *cfs_rq = cfs_rq_of(se);
		cfs_rq = cfs_rq_of(se);

		update_cfs_load(cfs_rq, 0);
		update_cfs_shares(cfs_rq);