|
| From: | Daniel Henrique Barboza |
| Subject: | Re: [PATCH 2/5] spapr/ddw: Remove confuse return value in spapr_phb_get_free_liobn() |
| Date: | Fri, 17 Feb 2023 07:31:26 -0300 |
| User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.2 |
On 2/16/23 09:25, Philippe Mathieu-Daudé wrote:
The '1' returned value isn't used because spapr_phb_get_free_liobn_cb() isn't called recursively (it is only called once in spapr_phb_get_free_liobn()). The next commit will convert object_child_foreach() handlers to return a boolean indicating error. Remove this value to avoid confusion. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> ---
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
hw/ppc/spapr_rtas_ddw.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/hw/ppc/spapr_rtas_ddw.c b/hw/ppc/spapr_rtas_ddw.c
index 7ba11382bc..98f1310c6e 100644
--- a/hw/ppc/spapr_rtas_ddw.c
+++ b/hw/ppc/spapr_rtas_ddw.c
@@ -51,7 +51,6 @@ static int spapr_phb_get_free_liobn_cb(Object *child, void
*opaque)
tcet = (SpaprTceTable *) object_dynamic_cast(child, TYPE_SPAPR_TCE_TABLE);
if (tcet && !tcet->nb_table) {
*(uint32_t *)opaque = tcet->liobn;
- return 1;
}
return 0;
}
| [Prev in Thread] | Current Thread | [Next in Thread] |