From: Greg Kurz Date: Thu, 22 Nov 2018 14:31:36 +0000 (+0100) Subject: spapr: drop redundant statement in spapr_populate_drconf_memory() X-Git-Tag: v4.0.0-rc0~197^2~35 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=118abc71ed900e7a2cafa3c12eb39b0184f2ba22;p=thirdparty%2Fqemu.git spapr: drop redundant statement in spapr_populate_drconf_memory() Signed-off-by: Greg Kurz Signed-off-by: David Gibson Reviewed-by: Laurent Vivier --- diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c index b423db311e5..051d080fe53 100644 --- a/hw/ppc/spapr.c +++ b/hw/ppc/spapr.c @@ -889,8 +889,6 @@ static int spapr_populate_drconf_memory(sPAPRMachineState *spapr, void *fdt) /* ibm,associativity-lookup-arrays */ buf_len = (nr_nodes * 4 + 2) * sizeof(uint32_t); cur_index = int_buf = g_malloc0(buf_len); - - cur_index = int_buf; int_buf[0] = cpu_to_be32(nr_nodes); int_buf[1] = cpu_to_be32(4); /* Number of entries per associativity list */ cur_index += 2;