changeset 10983:efda896d8f8b

6841286 Need x86 generic FMA topo enumerator (fix lint)
author Tom Pothier <Tom.Pothier@Sun.COM>
date Fri, 06 Nov 2009 08:25:35 -0500
parents 34d62707fe9d
children bf1fc133a515
files usr/src/lib/fm/topo/modules/i86pc/chip/chip_intel.c usr/src/lib/fm/topo/modules/i86pc/x86pi/x86pi.c usr/src/lib/fm/topo/modules/i86pc/x86pi/x86pi_subr.c
diffstat 3 files changed, 14 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/lib/fm/topo/modules/i86pc/chip/chip_intel.c	Fri Nov 06 01:17:20 2009 -0800
+++ b/usr/src/lib/fm/topo/modules/i86pc/chip/chip_intel.c	Fri Nov 06 08:25:35 2009 -0500
@@ -146,7 +146,7 @@
 		(void) topo_node_asru_set(rnode, fmri, TOPO_ASRU_COMPUTE, &err);
 
 		if (FM_AWARE_SMBIOS(mod))
-			topo_node_label_set(rnode, NULL, &err);
+			(void) topo_node_label_set(rnode, NULL, &err);
 
 		nvlist_free(fmri);
 
--- a/usr/src/lib/fm/topo/modules/i86pc/x86pi/x86pi.c	Fri Nov 06 01:17:20 2009 -0800
+++ b/usr/src/lib/fm/topo/modules/i86pc/x86pi/x86pi.c	Fri Nov 06 08:25:35 2009 -0500
@@ -83,7 +83,7 @@
 	topo_mod_dprintf(mod, "module initializing.\n");
 
 	if (version != TOPO_VERSION) {
-		topo_mod_seterrno(mod, EMOD_VER_NEW);
+		(void) topo_mod_seterrno(mod, EMOD_VER_NEW);
 		topo_mod_dprintf(mod, "incompatible topo version %d\n",
 		    version);
 		return (-1);
--- a/usr/src/lib/fm/topo/modules/i86pc/x86pi/x86pi_subr.c	Fri Nov 06 01:17:20 2009 -0800
+++ b/usr/src/lib/fm/topo/modules/i86pc/x86pi/x86pi_subr.c	Fri Nov 06 08:25:35 2009 -0500
@@ -183,7 +183,7 @@
 		 * We failed to create the property group and it was not
 		 * already defined.  Set the err code and return failure.
 		 */
-		topo_mod_seterrno(mod, err);
+		(void) topo_mod_seterrno(mod, err);
 		return (-1);
 	}
 
@@ -231,7 +231,7 @@
 			    &err);
 			if (result != 0) {
 				/* Preserve the error and continue */
-				topo_mod_seterrno(mod, err);
+				(void) topo_mod_seterrno(mod, err);
 				topo_mod_dprintf(mod, "%s: failed to set "
 				    "property %s (%d) : %s\n", f,
 				    FM_FMRI_AUTH_PRODUCT, err,
@@ -262,7 +262,7 @@
 			    &err);
 			if (result != 0) {
 				/* Preserve the error and continue */
-				topo_mod_seterrno(mod, err);
+				(void) topo_mod_seterrno(mod, err);
 				topo_mod_dprintf(mod, "%s: failed to "
 				    "set property %s (%d) : %s\n", f,
 				    FM_FMRI_AUTH_PRODUCT_SN, err,
@@ -316,7 +316,7 @@
 
 			if (result != 0) {
 				/* Preserve the error and continue */
-				topo_mod_seterrno(mod, err);
+				(void) topo_mod_seterrno(mod, err);
 				topo_mod_dprintf(mod, "%s: failed to "
 				    "set property %s (%d) : %s\n", f,
 				    FM_FMRI_AUTH_CHASSIS, err,
@@ -359,7 +359,7 @@
 			    &err);
 			if (result != 0) {
 				/* Preserve the error and continue */
-				topo_mod_seterrno(mod, err);
+				(void) topo_mod_seterrno(mod, err);
 				topo_mod_dprintf(mod, "%s: failed to "
 				    "set property %s (%d) : %s\n", f,
 				    FM_FMRI_AUTH_SERVER, err,
@@ -400,7 +400,7 @@
 	 */
 	if (!(flag & X86PI_ENUM_FRU)) {
 		/* This node is not a FRU.  Inherit from parent and return */
-		topo_node_fru_set(t_node, NULL, 0, &result);
+		(void) topo_node_fru_set(t_node, NULL, 0, &result);
 		return (0);
 	}
 
@@ -420,7 +420,7 @@
 	/* Set the FRU, whether NULL or not */
 	result = topo_node_fru_set(t_node, frufmri, 0, &err);
 	if (result != 0)  {
-		topo_mod_seterrno(mod, err);
+		(void) topo_mod_seterrno(mod, err);
 	}
 	nvlist_free(frufmri);
 
@@ -449,7 +449,7 @@
 	 */
 	result = topo_node_label_set(t_node, (char *)label, &err);
 	if (result != 0) {
-		topo_mod_seterrno(mod, err);
+		(void) topo_mod_seterrno(mod, err);
 		topo_mod_dprintf(mod, "x86pi_set_label: failed with label %s "
 		    "on %s node: %s\n", (label == NULL ? "NULL" : label),
 		    name, topo_strerror(err));
@@ -481,7 +481,7 @@
 		 * We failed to create the property group and it was not
 		 * already defined.  Set the err code and return failure.
 		 */
-		topo_mod_seterrno(mod, err);
+		(void) topo_mod_seterrno(mod, err);
 		return (-1);
 	}
 
@@ -501,7 +501,7 @@
 			    TOPO_PROP_IMMUTABLE, isa, &err);
 			if (result != 0) {
 				/* Preserve the error and continue */
-				topo_mod_seterrno(mod, err);
+				(void) topo_mod_seterrno(mod, err);
 				topo_mod_dprintf(mod,
 				    "x86pi_set_auth: failed to "
 				    "set property %s (%d) : %s\n",
@@ -516,7 +516,7 @@
 		result = uname(&uts);
 		if (result == -1) {
 			/* Preserve the error and continue */
-			topo_mod_seterrno(mod, errno);
+			(void) topo_mod_seterrno(mod, errno);
 			topo_mod_dprintf(mod, "x86pi_set_system: failed to "
 			    "read uname: %d\n", errno);
 		}
@@ -526,7 +526,7 @@
 			    TOPO_PROP_IMMUTABLE, uts.machine, &err);
 			if (result != 0) {
 				/* Preserve the error and continue */
-				topo_mod_seterrno(mod, err);
+				(void) topo_mod_seterrno(mod, err);
 				topo_mod_dprintf(mod,
 				    "x86pi_set_auth: failed to "
 				    "set property %s (%d) : %s\n",