Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Apr 2018 14:25:39 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r332071 - in stable/11/sys/amd64: linux linux32
Message-ID:  <201804051425.w35EPe2R044458@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: emaste
Date: Thu Apr  5 14:25:39 2018
New Revision: 332071
URL: https://svnweb.freebsd.org/changeset/base/332071

Log:
  MFC r331442: Fixup return style(9) in amd64 linux*_sysvec.c

Modified:
  stable/11/sys/amd64/linux/linux_sysvec.c
  stable/11/sys/amd64/linux32/linux32_sysvec.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/amd64/linux/linux_sysvec.c
==============================================================================
--- stable/11/sys/amd64/linux/linux_sysvec.c	Thu Apr  5 13:56:40 2018	(r332070)
+++ stable/11/sys/amd64/linux/linux_sysvec.c	Thu Apr  5 14:25:39 2018	(r332071)
@@ -204,15 +204,15 @@ translate_traps(int signal, int trap_code)
 {
 
 	if (signal != SIGBUS)
-		return signal;
+		return (signal);
 	switch (trap_code) {
 	case T_PROTFLT:
 	case T_TSSFLT:
 	case T_DOUBLEFLT:
 	case T_PAGEFLT:
-		return SIGSEGV;
+		return (SIGSEGV);
 	default:
-		return signal;
+		return (signal);
 	}
 }
 

Modified: stable/11/sys/amd64/linux32/linux32_sysvec.c
==============================================================================
--- stable/11/sys/amd64/linux32/linux32_sysvec.c	Thu Apr  5 13:56:40 2018	(r332070)
+++ stable/11/sys/amd64/linux32/linux32_sysvec.c	Thu Apr  5 14:25:39 2018	(r332071)
@@ -211,15 +211,15 @@ static int
 translate_traps(int signal, int trap_code)
 {
 	if (signal != SIGBUS)
-		return signal;
+		return (signal);
 	switch (trap_code) {
 	case T_PROTFLT:
 	case T_TSSFLT:
 	case T_DOUBLEFLT:
 	case T_PAGEFLT:
-		return SIGSEGV;
+		return (SIGSEGV);
 	default:
-		return signal;
+		return (signal);
 	}
 }
 



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