Permalink
Browse files

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)
  • Loading branch information...
DimitryAndric committed Oct 10, 2013
1 parent cfff9c7 commit 159130772737068f0dcc17082b231d061d43c9cb
Showing with 3 additions and 0 deletions.
  1. +3 −0 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);

0 comments on commit 1591307

Please sign in to comment.