mirror of
https://git.FreeBSD.org/src.git
synced 2024-11-24 07:40:52 +00:00
bus: Fix the non-debug build
We read the rman type twice. Replace the second call to rman_get_type with the value we already have. Reported by: bapt, Herbert J. Skuhra <herbert@gojira.at> Sponsored by: Arm Ltd
This commit is contained in:
parent
60344d7e09
commit
d652801574
@ -4367,7 +4367,7 @@ bus_generic_rman_activate_resource(device_t dev, device_t child,
|
||||
if (error != 0)
|
||||
return (error);
|
||||
|
||||
switch (rman_get_type(r)) {
|
||||
switch (type) {
|
||||
case SYS_RES_IOPORT:
|
||||
case SYS_RES_MEMORY:
|
||||
if ((rman_get_flags(r) & RF_UNMAPPED) == 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user