Fixup return style(9) in amd64 linux*_sysvec.c
Sponsored by: Turing Robotic Industries Inc.
This commit is contained in:
parent
98bd8a108d
commit
ad448975e6
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user