From nobody Wed May 1 17:38:07 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (208.118.235.17 [208.118.235.17]) by mx.zohomail.com with SMTPS id 1542897214600464.1265559800644; Thu, 22 Nov 2018 06:33:34 -0800 (PST) Received: from localhost ([::1]:47012 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gPq2i-0004Iz-Oo for importer@patchew.org; Thu, 22 Nov 2018 09:33:20 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44897) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gPq1E-0003mw-U6 for qemu-devel@nongnu.org; Thu, 22 Nov 2018 09:31:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gPq1B-00029u-Nk for qemu-devel@nongnu.org; Thu, 22 Nov 2018 09:31:48 -0500 Received: from 2.mo7.mail-out.ovh.net ([87.98.143.68]:55305) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gPq1B-0001kR-Ha for qemu-devel@nongnu.org; Thu, 22 Nov 2018 09:31:45 -0500 Received: from player691.ha.ovh.net (unknown [10.109.159.136]) by mo7.mail-out.ovh.net (Postfix) with ESMTP id 0F101E6FE9 for ; Thu, 22 Nov 2018 15:31:41 +0100 (CET) Received: from kaod.org (lns-bzn-46-82-253-208-248.adsl.proxad.net [82.253.208.248]) (Authenticated sender: groug@kaod.org) by player691.ha.ovh.net (Postfix) with ESMTPSA id 7BBE7342E5B; Thu, 22 Nov 2018 14:31:36 +0000 (UTC) From: Greg Kurz To: qemu-devel@nongnu.org Date: Thu, 22 Nov 2018 15:31:36 +0100 Message-ID: <154289709597.235079.13366613265527123490.stgit@bahia.lan> User-Agent: StGit/unknown-version MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Ovh-Tracer-Id: 13676587645989329387 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedtkedruddtledgieeiucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucesvcftvggtihhpihgvnhhtshculddquddttddm X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 87.98.143.68 Subject: [Qemu-devel] [PATCH] spapr: drop redundant statement in spapr_populate_drconf_memory() X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-trivial@nongnu.org, qemu-ppc@nongnu.org, David Gibson Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Signed-off-by: Greg Kurz Reviewed-by: Laurent Vivier --- hw/ppc/spapr.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c index 9c41098b5781..7771a628f879 100644 --- a/hw/ppc/spapr.c +++ b/hw/ppc/spapr.c @@ -893,8 +893,6 @@ static int spapr_populate_drconf_memory(sPAPRMachineSta= te *spapr, void *fdt) /* ibm,associativity-lookup-arrays */ buf_len =3D (nr_nodes * 4 + 2) * sizeof(uint32_t); cur_index =3D int_buf =3D g_malloc0(buf_len); - - cur_index =3D int_buf; int_buf[0] =3D cpu_to_be32(nr_nodes); int_buf[1] =3D cpu_to_be32(4); /* Number of entries per associativity = list */ cur_index +=3D 2;