Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Oct 2017 10:16:57 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r324354 - head/sys/i386/i386
Message-ID:  <201710061016.v96AGvqW092710@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Fri Oct  6 10:16:57 2017
New Revision: 324354
URL: https://svnweb.freebsd.org/changeset/base/324354

Log:
  Style.
  
  Reviewed by:	bde
  Sponsored by:	The FreeBSD Foundation
  MFC after:	1 week

Modified:
  head/sys/i386/i386/sys_machdep.c

Modified: head/sys/i386/i386/sys_machdep.c
==============================================================================
--- head/sys/i386/i386/sys_machdep.c	Fri Oct  6 09:02:36 2017	(r324353)
+++ head/sys/i386/i386/sys_machdep.c	Fri Oct  6 10:16:57 2017	(r324354)
@@ -533,10 +533,10 @@ i386_get_ldt(struct thread *td, struct i386_ldt_args *
 		return(EINVAL);
 
 	error = copyout(lp, uap->descs, num * sizeof(union descriptor));
-	if (!error)
+	if (error == 0)
 		td->td_retval[0] = num;
 
-	return(error);
+	return (error);
 }
 
 int
@@ -545,7 +545,7 @@ i386_set_ldt(struct thread *td, struct i386_ldt_args *
 {
 	int error, i;
 	int largest_ld;
-	struct mdproc *mdp = &td->td_proc->p_md;
+	struct mdproc *mdp;
 	struct proc_ldt *pldt;
 	union descriptor *dp;
 
@@ -554,6 +554,7 @@ i386_set_ldt(struct thread *td, struct i386_ldt_args *
 	    uap->start, uap->num, (void *)uap->descs);
 #endif
 	error = 0;
+	mdp = &td->td_proc->p_md;
 
 	if (descs == NULL) {
 		/* Free descriptors */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201710061016.v96AGvqW092710>