]> git.baikalelectronics.ru Git - kernel.git/commit
cpu/hotplug: Remove unused but set variable in _cpu_down()
authorTobias Klauser <tklauser@distanz.ch>
Tue, 17 Jan 2017 14:35:01 +0000 (15:35 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 18 Jan 2017 10:55:09 +0000 (11:55 +0100)
commit9059723803a53ec5cecd6bd3e0c3f8e6e236757a
tree549969ab682cb758e8c439602adc931ecddc5244
parent655451c2bf7307a4c0ff689b567c845047a6442e
cpu/hotplug: Remove unused but set variable in _cpu_down()

After the recent removal of the hotplug notifiers the variable 'hasdied' in
_cpu_down() is set but no longer read, leading to the following GCC warning
when building with 'make W=1':

  kernel/cpu.c:767:7: warning: variable ‘hasdied’ set but not used [-Wunused-but-set-variable]

Fix it by removing the variable.

Fixes: 505ce835de2f ("cpu/hotplug: Remove obsolete cpu hotplug register/unregister functions")
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Cc: rt@linutronix.de
Link: http://lkml.kernel.org/r/20170117143501.20893-1-tklauser@distanz.ch
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/cpu.c