Blame 0221-ioh3420-Remove-unreachable-code.patch

5544c1
From abb7dc3467f809d3d3dfc0aef70fce7ee542c550 Mon Sep 17 00:00:00 2001
5544c1
From: Stefan Weil <sw@weilnetz.de>
5544c1
Date: Sat, 1 Sep 2012 12:56:03 +0200
5544c1
Subject: [PATCH] ioh3420: Remove unreachable code
5544c1
5544c1
Report from smatch:
5544c1
hw/ioh3420.c:128 ioh3420_initfn(35) info: ignoring unreachable code.
5544c1
5544c1
Signed-off-by: Stefan Weil <sw@weilnetz.de>
5544c1
Reviewed-by: Juan Quintela <quintela@redhat.com>
5544c1
Signed-off-by: Stefan Hajnoczi <stefanha@gmail.com>
5544c1
(cherry picked from commit 997f15672a5ca7714cf310d92f475d2c5fe40970)
5544c1
5544c1
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
5544c1
---
5544c1
 hw/ioh3420.c | 1 -
5544c1
 1 file changed, 1 deletion(-)
5544c1
5544c1
diff --git a/hw/ioh3420.c b/hw/ioh3420.c
5544c1
index 94a537c..4d31473 100644
5544c1
--- a/hw/ioh3420.c
5544c1
+++ b/hw/ioh3420.c
5544c1
@@ -125,7 +125,6 @@ static int ioh3420_initfn(PCIDevice *d)
5544c1
     rc = pcie_chassis_add_slot(s);
5544c1
     if (rc < 0) {
5544c1
         goto err_pcie_cap;
5544c1
-        return rc;
5544c1
     }
5544c1
     pcie_cap_root_init(d);
5544c1
     rc = pcie_aer_init(d, IOH_EP_AER_OFFSET);
5544c1
-- 
5544c1
1.7.12.1
5544c1