Module Name:    src
Committed By:   dyoung
Date:           Tue Apr 28 20:56:40 UTC 2009

Modified Files:
        src/sys/kern: uipc_domain.c

Log Message:
Cosmetic: remove unnecessary parentheses.


To generate a diff of this commit:
cvs rdiff -u -r1.80 -r1.81 src/sys/kern/uipc_domain.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/kern/uipc_domain.c
diff -u src/sys/kern/uipc_domain.c:1.80 src/sys/kern/uipc_domain.c:1.81
--- src/sys/kern/uipc_domain.c:1.80	Tue Apr 28 20:54:50 2009
+++ src/sys/kern/uipc_domain.c	Tue Apr 28 20:56:40 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: uipc_domain.c,v 1.80 2009/04/28 20:54:50 dyoung Exp $	*/
+/*	$NetBSD: uipc_domain.c,v 1.81 2009/04/28 20:56:40 dyoung Exp $	*/
 
 /*
  * Copyright (c) 1982, 1986, 1993
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uipc_domain.c,v 1.80 2009/04/28 20:54:50 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uipc_domain.c,v 1.81 2009/04/28 20:56:40 dyoung Exp $");
 
 #include <sys/param.h>
 #include <sys/socket.h>
@@ -145,8 +145,8 @@
 
 	DOMAIN_FOREACH(dp)
 		if (dp->dom_family == family)
-			return (dp);
-	return (NULL);
+			return dp;
+	return NULL;
 }
 
 const struct protosw *
@@ -157,13 +157,13 @@
 
 	dp = pffinddomain(family);
 	if (dp == NULL)
-		return (NULL);
+		return NULL;
 
 	for (pr = dp->dom_protosw; pr < dp->dom_protoswNPROTOSW; pr++)
 		if (pr->pr_type && pr->pr_type == type)
-			return (pr);
+			return pr;
 
-	return (NULL);
+	return NULL;
 }
 
 const struct protosw *
@@ -174,21 +174,21 @@
 	const struct protosw *maybe = NULL;
 
 	if (family == 0)
-		return (NULL);
+		return NULL;
 
 	dp = pffinddomain(family);
 	if (dp == NULL)
-		return (NULL);
+		return NULL;
 
 	for (pr = dp->dom_protosw; pr < dp->dom_protoswNPROTOSW; pr++) {
 		if ((pr->pr_protocol == protocol) && (pr->pr_type == type))
-			return (pr);
+			return pr;
 
 		if (type == SOCK_RAW && pr->pr_type == SOCK_RAW &&
 		    pr->pr_protocol == 0 && maybe == NULL)
 			maybe = pr;
 	}
-	return (maybe);
+	return maybe;
 }
 
 void *
@@ -392,10 +392,10 @@
 	int error, elem_count, pf, type, pf2;
 
 	if (namelen == 1 && name[0] == CTL_QUERY)
-		return (sysctl_query(SYSCTLFN_CALL(rnode)));
+		return sysctl_query(SYSCTLFN_CALL(rnode));
 
 	if (namelen != 4)
-		return (EINVAL);
+		return EINVAL;
 
 	if (oldp != NULL) {
 		len = *oldlenp;
@@ -416,7 +416,7 @@
 	needed = 0;
 
 	if (name - oname != 4)
-		return (EINVAL);
+		return EINVAL;
 
 	pf = oname[1];
 	type = oname[2];
@@ -477,7 +477,7 @@
 		*oldlenp += PCB_SLOP * sizeof(struct kinfo_pcb);
  	sysctl_relock();
 
-	return (error);
+	return error;
 }
 
 static void

Reply via email to