Fixup return style(9) in amd64 linux*_sysvec.c

Sponsored by:	Turing Robotic Industries Inc.
This commit is contained in:
Ed Maste 2018-03-23 17:28:04 +00:00
parent 98bd8a108d
commit ad448975e6
2 changed files with 6 additions and 6 deletions
sys/amd64

@ -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);
}
}

@ -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);
}
}