Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Mar 2012 06:31:28 +0000 (UTC)
From:      Juli Mallett <jmallett@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r232767 - head/sys/mips/mips
Message-ID:  <201203100631.q2A6VS0t043547@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jmallett
Date: Sat Mar 10 06:31:28 2012
New Revision: 232767
URL: http://svn.freebsd.org/changeset/base/232767

Log:
  Reduce diffs with freebsd32_sysarch.

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

Modified: head/sys/mips/mips/sys_machdep.c
==============================================================================
--- head/sys/mips/mips/sys_machdep.c	Sat Mar 10 06:12:14 2012	(r232766)
+++ head/sys/mips/mips/sys_machdep.c	Sat Mar 10 06:31:28 2012	(r232767)
@@ -53,25 +53,21 @@ struct sysarch_args {
 #endif
 
 int
-sysarch(td, uap)
-	struct thread *td;
-	register struct sysarch_args *uap;
+sysarch(struct thread *td, struct sysarch_args *uap)
 {
 	int error;
 	void *tlsbase;
 
 	switch (uap->op) {
-	case MIPS_SET_TLS : 
-		td->td_md.md_tls = (void*)uap->parms;
-		error = 0;
-		break;
-
-	case MIPS_GET_TLS : 
+	case MIPS_SET_TLS:
+		td->td_md.md_tls = uap->parms;
+		return (0);
+	case MIPS_GET_TLS: 
 		tlsbase = td->td_md.md_tls;
 		error = copyout(&tlsbase, uap->parms, sizeof(tlsbase));
-		break;
+		return (error);
 	default:
-		error = EINVAL;
+		break;
 	}
-	return (error);
+	return (EINVAL);
 }



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