svn commit: r256292 - stable/10/sys/arm/versatile

Dimitry Andric dim at FreeBSD.org
Thu Oct 10 19:48:43 UTC 2013


Author: dim
Date: Thu Oct 10 19:48:43 2013
New Revision: 256292
URL: http://svnweb.freebsd.org/changeset/base/256292

Log:
  MFC r256291:
  
  In sys/arm/versatile/versatile_pci.c, add a default handler, to fix a
  gcc warning about uninitialized use of a variable.
  
  Approved by:	re (gjb)

Modified:
  stable/10/sys/arm/versatile/versatile_pci.c
Directory Properties:
  stable/10/sys/   (props changed)

Modified: stable/10/sys/arm/versatile/versatile_pci.c
==============================================================================
--- stable/10/sys/arm/versatile/versatile_pci.c	Thu Oct 10 19:40:01 2013	(r256291)
+++ stable/10/sys/arm/versatile/versatile_pci.c	Thu Oct 10 19:48:43 2013	(r256292)
@@ -360,6 +360,9 @@ versatile_pci_activate_resource(device_t
 		res = (BUS_ACTIVATE_RESOURCE(device_get_parent(bus),
 		    child, type, rid, r));
 		break;
+	default:
+		res = ENXIO;
+		break;
 	}
 
 	return (res);


More information about the svn-src-all mailing list