More style.

Reviewed by:	bde
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
This commit is contained in:
Konstantin Belousov 2017-10-09 15:24:18 +00:00
parent 4835edfa0d
commit 4f7c931a11

View File

@ -717,10 +717,10 @@ i386_set_ldt_data(struct thread *td, int start, int num,
static int
i386_ldt_grow(struct thread *td, int len)
{
struct mdproc *mdp = &td->td_proc->p_md;
struct mdproc *mdp;
struct proc_ldt *new_ldt, *pldt;
caddr_t old_ldt_base = NULL_LDT_BASE;
int old_ldt_len = 0;
caddr_t old_ldt_base;
int old_ldt_len;
mtx_assert(&dt_lock, MA_OWNED);
@ -729,6 +729,10 @@ i386_ldt_grow(struct thread *td, int len)
if (len < NLDT + 1)
len = NLDT + 1;
mdp = &td->td_proc->p_md;
old_ldt_base = NULL_LDT_BASE;
old_ldt_len = 0;
/* Allocate a user ldt. */
if ((pldt = mdp->md_ldt) == NULL || len > pldt->ldt_len) {
new_ldt = user_ldt_alloc(mdp, len);