[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] [PATCH] ppc440_uc: Fix unintialized variable warning with old
From: |
BALATON Zoltan |
Subject: |
[Qemu-ppc] [PATCH] ppc440_uc: Fix unintialized variable warning with older gcc |
Date: |
Fri, 2 Mar 2018 22:43:23 +0100 |
Signed-off-by: BALATON Zoltan <address@hidden>
---
hw/ppc/ppc440_uc.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/hw/ppc/ppc440_uc.c b/hw/ppc/ppc440_uc.c
index 4e2523a..976ab2b 100644
--- a/hw/ppc/ppc440_uc.c
+++ b/hw/ppc/ppc440_uc.c
@@ -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);
--
2.7.6
- [Qemu-ppc] [PATCH] ppc440_uc: Fix unintialized variable warning with older gcc,
BALATON Zoltan <=