]> git.baikalelectronics.ru Git - kernel.git/commit
sched: Remove redundant assignment to "rt_rq" in update_curr_rt(...)
authorGiedrius Rekasius <giedrius.rekasius@gmail.com>
Sun, 25 May 2014 14:23:31 +0000 (15:23 +0100)
committerIngo Molnar <mingo@kernel.org>
Thu, 5 Jun 2014 09:52:34 +0000 (11:52 +0200)
commite2a10672338764780d4e95b092a0c8c35a013ec2
tree734d42ef3ee50815f0506fb6fb3baea1f22443c5
parentcb9dd88b1d2d76a667eb119bf56d8722de50874a
sched: Remove redundant assignment to "rt_rq" in update_curr_rt(...)

Variable "rt_rq" is used only in block "for_each_sched_rt_entity" so the
value assigned to it at the beginning of the update_curr_rt(...) gets
overwritten without ever being read. Remove redundant assignment and
move variable declaration to the block in which it is being used.

Signed-off-by: Giedrius Rekasius <giedrius.rekasius@gmail.com>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Cc: kernel-janitors@vger.kernel.org
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: linux-kernel@vger.kernel.org
Link: http://lkml.kernel.org/r/1401027811-30066-1-git-send-email-giedrius.rekasius@gmail.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/rt.c