qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 06/14] ioh3420: Remove unreachable code


From: Stefan Hajnoczi
Subject: [Qemu-devel] [PATCH 06/14] ioh3420: Remove unreachable code
Date: Sun, 23 Sep 2012 11:00:12 +0100

From: Stefan Weil <address@hidden>

Report from smatch:
hw/ioh3420.c:128 ioh3420_initfn(35) info: ignoring unreachable code.

Signed-off-by: Stefan Weil <address@hidden>
Reviewed-by: Juan Quintela <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>
---
 hw/ioh3420.c |    1 -
 1 file changed, 1 deletion(-)

diff --git a/hw/ioh3420.c b/hw/ioh3420.c
index 94a537c..4d31473 100644
--- a/hw/ioh3420.c
+++ b/hw/ioh3420.c
@@ -125,7 +125,6 @@ static int ioh3420_initfn(PCIDevice *d)
     rc = pcie_chassis_add_slot(s);
     if (rc < 0) {
         goto err_pcie_cap;
-        return rc;
     }
     pcie_cap_root_init(d);
     rc = pcie_aer_init(d, IOH_EP_AER_OFFSET);
-- 
1.7.10.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]