PERFORCE change 90094 for review

Robert Watson rwatson at FreeBSD.org
Sat Jan 21 07:30:49 PST 2006


http://perforce.freebsd.org/chv.cgi?CH=90094

Change 90094 by rwatson at rwatson_sesame on 2006/01/21 15:30:22

	Remove unnecessary argument sanity checks.

Affected files ...

.. //depot/projects/trustedbsd/openbsm/libbsm/bsm_flags.c#11 edit

Differences ...

==== //depot/projects/trustedbsd/openbsm/libbsm/bsm_flags.c#11 (text+ko) ====

@@ -50,12 +50,6 @@
 	char sel, sub;
 	char *last;
 
-
-	if ((auditstr == NULL) || (masks == NULL)) {
-		errno = EINVAL;
-		return (-1);
-	}
-
 	bzero(&c, sizeof(c));
 	bzero(class_ent_name, sizeof(class_ent_name));
 	bzero(class_ent_desc, sizeof(class_ent_desc));
@@ -122,11 +116,6 @@
 	char *strptr = auditstr;
 	u_char sel;
 
-	if ((auditstr == NULL) || (masks == NULL)) {
-		return (EINVAL);
-		return (-1);
-	}
-
 	bzero(&c, sizeof(c));
 	bzero(class_ent_name, sizeof(class_ent_name));
 	bzero(class_ent_desc, sizeof(class_ent_desc));


More information about the p4-projects mailing list