summaryrefslogtreecommitdiffstats
path: root/sys/arm
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2013-10-10 19:48:43 +0000
committerdim <dim@FreeBSD.org>2013-10-10 19:48:43 +0000
commit159130772737068f0dcc17082b231d061d43c9cb (patch)
treea987e349ca453e665feada6f46aeb1b2e2733222 /sys/arm
parentcfff9c715ed49847a2e6233558f6c309d78728fa (diff)
downloadFreeBSD-src-159130772737068f0dcc17082b231d061d43c9cb.zip
FreeBSD-src-159130772737068f0dcc17082b231d061d43c9cb.tar.gz
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)
Diffstat (limited to 'sys/arm')
-rw-r--r--sys/arm/versatile/versatile_pci.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/arm/versatile/versatile_pci.c b/sys/arm/versatile/versatile_pci.c
index 131209a..e65dbb6 100644
--- a/sys/arm/versatile/versatile_pci.c
+++ b/sys/arm/versatile/versatile_pci.c
@@ -360,6 +360,9 @@ versatile_pci_activate_resource(device_t bus, device_t child, int type, int rid,
res = (BUS_ACTIVATE_RESOURCE(device_get_parent(bus),
child, type, rid, r));
break;
+ default:
+ res = ENXIO;
+ break;
}
return (res);
OpenPOWER on IntegriCloud