x86/debug: Simplify #DB signal code
authorPeter Zijlstra <peterz@infradead.org>
Wed, 2 Sep 2020 13:25:55 +0000 (15:25 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 4 Sep 2020 13:12:52 +0000 (15:12 +0200)
commit4182e9436916a48f16207f0619562f1d3843a0c8
tree4cf848629c4725f1d0fb0d5248e56d963e3e4553
parent7043679a989af969e9f20cc7d90195b36f54036f
x86/debug: Simplify #DB signal code

There's no point in calculating si_code if it's not going to be used.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Daniel Thompson <daniel.thompson@linaro.org>
Link: https://lore.kernel.org/r/20200902133200.967434217@infradead.org
arch/x86/kernel/traps.c