diff usr/src/lib/fm/topo/modules/common/pcibus/pcibus.c @ 11050:be69f645ce17

6894028 Some fm libraries are not lint clean 6897387 IPMI facility provider methods not registered on some platforms 6893713 Some fm cmds are not lint clean
author Robert Johnston <Robert.Johnston@Sun.COM>
date Wed, 11 Nov 2009 18:52:48 -0800
parents 0c3d84a756da
children bcacc803343d
line wrap: on
line diff
--- a/usr/src/lib/fm/topo/modules/common/pcibus/pcibus.c	Thu Nov 12 10:27:19 2009 +0800
+++ b/usr/src/lib/fm/topo/modules/common/pcibus/pcibus.c	Wed Nov 11 18:52:48 2009 -0800
@@ -90,7 +90,10 @@
 	if (version != PCI_ENUMR_VERS)
 		return (topo_mod_seterrno(modhdl, EMOD_VER_NEW));
 
-	topo_mod_register(modhdl, &Pci_info, TOPO_VERSION);
+	if (topo_mod_register(modhdl, &Pci_info, TOPO_VERSION) != 0) {
+		topo_mod_dprintf(modhdl, "failed to register module");
+		return (-1);
+	}
 	topo_mod_dprintf(modhdl, "PCI Enumr initd\n");
 
 	return (0);
@@ -502,7 +505,7 @@
 				    NULL) {
 					topo_mod_dprintf(mod, "pcibus enum "
 					    "could not load xaui enum\n");
-					topo_mod_seterrno(mod,
+					(void) topo_mod_seterrno(mod,
 					    EMOD_PARTIAL_ENUM);
 					return;
 				} else {