Some style(9) && whitespaces fixes. No functional changes.

Differential Revision:	https://reviews.freebsd.org/D1041
Reviewed by:	emaste
This commit is contained in:
Dmitry Chagin 2015-05-24 14:55:12 +00:00
parent 5e609834bd
commit af682d487b
2 changed files with 12 additions and 12 deletions

View File

@ -294,7 +294,7 @@ elf_linux_fixup(register_t **stack_base, struct image_params *imgp)
base--;
suword32(base, (uint32_t)imgp->args->argc);
*stack_base = (register_t *)base;
return 0;
return (0);
}
extern unsigned long linux_sznonrtsigcode;
@ -1171,9 +1171,9 @@ linux_elf_modevent(module_t mod, int type, void *data)
printf("Could not deinstall ELF interpreter entry\n");
break;
default:
return EOPNOTSUPP;
return (EOPNOTSUPP);
}
return error;
return (error);
}
static moduledata_t linux_elf_mod = {

View File

@ -209,15 +209,15 @@ static int
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);
}
}
@ -685,7 +685,7 @@ linux_sigreturn(struct thread *td, struct linux_sigreturn_args *args)
#define EFLAGS_SECURE(ef, oef) ((((ef) ^ (oef)) & ~PSL_USERCHANGE) == 0)
eflags = frame.sf_sc.sc_eflags;
if (!EFLAGS_SECURE(eflags, regs->tf_eflags))
return(EINVAL);
return (EINVAL);
/*
* Don't allow users to load a valid privileged %cs. Let the
@ -700,7 +700,7 @@ linux_sigreturn(struct thread *td, struct linux_sigreturn_args *args)
ksi.ksi_trapno = T_PROTFLT;
ksi.ksi_addr = (void *)regs->tf_eip;
trapsignal(td, &ksi);
return(EINVAL);
return (EINVAL);
}
lmask.__bits[0] = frame.sf_sc.sc_mask;
@ -776,7 +776,7 @@ linux_rt_sigreturn(struct thread *td, struct linux_rt_sigreturn_args *args)
#define EFLAGS_SECURE(ef, oef) ((((ef) ^ (oef)) & ~PSL_USERCHANGE) == 0)
eflags = context->sc_eflags;
if (!EFLAGS_SECURE(eflags, regs->tf_eflags))
return(EINVAL);
return (EINVAL);
/*
* Don't allow users to load a valid privileged %cs. Let the
@ -791,7 +791,7 @@ linux_rt_sigreturn(struct thread *td, struct linux_rt_sigreturn_args *args)
ksi.ksi_trapno = T_PROTFLT;
ksi.ksi_addr = (void *)regs->tf_eip;
trapsignal(td, &ksi);
return(EINVAL);
return (EINVAL);
}
linux_to_bsd_sigset(&uc.uc_sigmask, &bmask);
@ -1147,9 +1147,9 @@ linux_elf_modevent(module_t mod, int type, void *data)
printf("Could not deinstall ELF interpreter entry\n");
break;
default:
return EOPNOTSUPP;
return (EOPNOTSUPP);
}
return error;
return (error);
}
static moduledata_t linux_elf_mod = {