svn commit: r324354 - head/sys/i386/i386
Konstantin Belousov
kib at FreeBSD.org
Fri Oct 6 10:16:58 UTC 2017
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 */
More information about the svn-src-all
mailing list