aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2018-03-23 17:28:04 +0000
committerEd Maste <emaste@FreeBSD.org>2018-03-23 17:28:04 +0000
commitad448975e6282fd5d663e6850ff8105fd794af33 (patch)
treee1910a21a86319bb9a0e91d40e8b7dfaa8dd0971
parent98bd8a108dcc136c6db63ee8241760387dbc6ba4 (diff)
downloadsrc-ad448975e6282fd5d663e6850ff8105fd794af33.tar.gz
src-ad448975e6282fd5d663e6850ff8105fd794af33.zip
Fixup return style(9) in amd64 linux*_sysvec.c
Sponsored by: Turing Robotic Industries Inc.
Notes
Notes: svn path=/head/; revision=331442
-rw-r--r--sys/amd64/linux/linux_sysvec.c6
-rw-r--r--sys/amd64/linux32/linux32_sysvec.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/sys/amd64/linux/linux_sysvec.c b/sys/amd64/linux/linux_sysvec.c
index e40ce2d5569c..561c68e29c55 100644
--- a/sys/amd64/linux/linux_sysvec.c
+++ b/sys/amd64/linux/linux_sysvec.c
@@ -184,15 +184,15 @@ linux_translate_traps(int signal, int trap_code)
{
if (signal != SIGBUS)
- return signal;
+ return (signal);
switch (trap_code) {
case T_PROTFLT:
case T_TSSFLT:
case T_DOUBLEFLT:
case T_PAGEFLT:
- return SIGSEGV;
+ return (SIGSEGV);
default:
- return signal;
+ return (signal);
}
}
diff --git a/sys/amd64/linux32/linux32_sysvec.c b/sys/amd64/linux32/linux32_sysvec.c
index c62ffc33ceb0..c9f6a6210725 100644
--- a/sys/amd64/linux32/linux32_sysvec.c
+++ b/sys/amd64/linux32/linux32_sysvec.c
@@ -193,15 +193,15 @@ static int
linux_translate_traps(int signal, int trap_code)
{
if (signal != SIGBUS)
- return signal;
+ return (signal);
switch (trap_code) {
case T_PROTFLT:
case T_TSSFLT:
case T_DOUBLEFLT:
case T_PAGEFLT:
- return SIGSEGV;
+ return (SIGSEGV);
default:
- return signal;
+ return (signal);
}
}