changeset 10554:7b2fc4ef618c

6472670 Internal pci root-bus addresses should be independent of bios enumeration order (non-x8400 systems) (fix lint)
author Dana Myers <Dana.Myers@Sun.COM>
date Tue, 15 Sep 2009 22:05:52 -0700
parents 0aa4533c70f5
children 1714de5ec218
files usr/src/uts/intel/io/pci/pci_boot.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/uts/intel/io/pci/pci_boot.c	Tue Sep 15 21:03:09 2009 -0700
+++ b/usr/src/uts/intel/io/pci/pci_boot.c	Tue Sep 15 22:05:52 2009 -0700
@@ -279,6 +279,7 @@
  * second is 1, and so on.
  */
 
+/*ARGSUSED*/
 static int
 pci_cache_unpack_nvlist(nvf_handle_t hdl, nvlist_t *nvl, char *name)
 {
@@ -332,7 +333,7 @@
 	listp = nvf_list(hdl);
 	for (pua = list_head(listp); pua != NULL;
 	    pua = list_next(listp, pua)) {
-		snprintf(buf, sizeof (buf), "%d", pua->pua_index);
+		(void) snprintf(buf, sizeof (buf), "%d", pua->pua_index);
 		rval = nvlist_add_int32(sub_nvl, buf, pua->pua_addr);
 		if (rval != DDI_SUCCESS)
 			goto error;