Simplify amd64 trap().
authorkib <kib@FreeBSD.org>
Sun, 20 Aug 2017 09:52:25 +0000 (09:52 +0000)
committerkib <kib@FreeBSD.org>
Sun, 20 Aug 2017 09:52:25 +0000 (09:52 +0000)
commit2dd98dac16b2d8425fae627787b9f79659ba6013
tree8a689e1923acce6d5c7650d26eafdaa2fc84cbd0
parent42ae7ee929ffa94e7529bafb7c58342e650e048a
Simplify amd64 trap().

- Use more relevant name 'signo' instead of 'i' for the local variable
  which contains a signal number to send for the current exception.
- Eliminate two labels 'userout' and 'out' which point to the very end
  of the trap() function.  Instead use return directly.
- Re-indent the prot_fault_translation block by reducing if() nesting.
- Some more monor style changes.

Requested and reviewed by: bde
Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
sys/amd64/amd64/trap.c