diff options
author | dim <dim@FreeBSD.org> | 2013-10-10 19:48:43 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2013-10-10 19:48:43 +0000 |
commit | 159130772737068f0dcc17082b231d061d43c9cb (patch) | |
tree | a987e349ca453e665feada6f46aeb1b2e2733222 /sys/arm | |
parent | cfff9c715ed49847a2e6233558f6c309d78728fa (diff) | |
download | FreeBSD-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.c | 3 |
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); |