From owner-svn-src-head@freebsd.org Fri Oct 6 10:16:58 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A831EE32EDB; Fri, 6 Oct 2017 10:16:58 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6CCB37C61A; Fri, 6 Oct 2017 10:16:58 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v96AGvtq092711; Fri, 6 Oct 2017 10:16:57 GMT (envelope-from kib@FreeBSD.org) Received: (from kib@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v96AGvqW092710; Fri, 6 Oct 2017 10:16:57 GMT (envelope-from kib@FreeBSD.org) Message-Id: <201710061016.v96AGvqW092710@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: kib set sender to kib@FreeBSD.org using -f From: Konstantin Belousov Date: Fri, 6 Oct 2017 10:16:57 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r324354 - head/sys/i386/i386 X-SVN-Group: head X-SVN-Commit-Author: kib X-SVN-Commit-Paths: head/sys/i386/i386 X-SVN-Commit-Revision: 324354 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Oct 2017 10:16:58 -0000 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 */