[Skiboot] [PATCH 2/2] hdata: Remove unnecessary bool
Neelesh Gupta
neelegup at linux.vnet.ibm.com
Tue May 19 01:49:34 AEST 2015
Signed-off-by: Neelesh Gupta <neelegup at linux.vnet.ibm.com>
Reviewed-by: Kamalesh Babulal <kamalesh at linux.vnet.ibm.com>
Reviewed-by: Vasant Hegde <hegdevasant at linux.vnet.ibm.com>
---
hdata/pcia.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/hdata/pcia.c b/hdata/pcia.c
index 29a81c1..efcfa7c 100644
--- a/hdata/pcia.c
+++ b/hdata/pcia.c
@@ -191,7 +191,6 @@ bool pcia_parse(void)
{
const void *pcia;
struct dt_node *cpus;
- bool got_pcia = false;
/* Check PCIA exists... if not, maybe we are getting a PACA ? */
pcia = get_hdif(&spira.ntuples.pcia, "SPPCIA");
@@ -200,8 +199,6 @@ bool pcia_parse(void)
prlog(PR_INFO, "Got PCIA !\n");
- got_pcia = true;
-
cpus = dt_new(dt_root, "cpus");
dt_add_property_cells(cpus, "#address-cells", 1);
dt_add_property_cells(cpus, "#size-cells", 0);
@@ -239,5 +236,5 @@ bool pcia_parse(void)
if (!add_core_node(cpus, pcia, id, okay))
break;
}
- return got_pcia;
+ return true;
}
More information about the Skiboot
mailing list