ppc440_uc: Fix unintialized variable warning with older gcc
Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
b1a568c1c2
commit
ff22e0eb25
@ -1050,6 +1050,9 @@ static void ppc460ex_pcie_realize(DeviceState *dev, Error **errp)
|
||||
case DCRN_PCIE1_BASE:
|
||||
id = 1;
|
||||
break;
|
||||
default:
|
||||
error_setg(errp, "invalid PCIe DCRN base");
|
||||
return;
|
||||
}
|
||||
snprintf(buf, sizeof(buf), "pcie%d-io", id);
|
||||
memory_region_init(&s->iomem, OBJECT(s), buf, UINT64_MAX);
|
||||
|
Loading…
Reference in New Issue
Block a user