From patchwork Thu Jun 16 16:37:12 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 100675 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id AB115B6F81 for ; Fri, 17 Jun 2011 04:01:13 +1000 (EST) Received: from localhost ([::1]:40459 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QXGsP-0006qG-Ty for incoming@patchwork.ozlabs.org; Thu, 16 Jun 2011 14:01:10 -0400 Received: from eggs.gnu.org ([140.186.70.92]:57096) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QXFZI-0002jk-D4 for qemu-devel@nongnu.org; Thu, 16 Jun 2011 12:37:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QXFZG-0005Hv-NE for qemu-devel@nongnu.org; Thu, 16 Jun 2011 12:37:20 -0400 Received: from mnementh.archaic.org.uk ([81.2.115.146]:50682) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QXFZG-0005Hn-Ah for qemu-devel@nongnu.org; Thu, 16 Jun 2011 12:37:18 -0400 Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.72) (envelope-from ) id 1QXFZD-00029q-8W; Thu, 16 Jun 2011 17:37:15 +0100 From: Peter Maydell To: qemu-devel@nongnu.org Date: Thu, 16 Jun 2011 17:37:12 +0100 Message-Id: <1308242235-8261-6-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <1308242235-8261-1-git-send-email-peter.maydell@linaro.org> References: <1308242235-8261-1-git-send-email-peter.maydell@linaro.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 81.2.115.146 Cc: Riku Voipio , Juan Quintela , patches@linaro.org Subject: [Qemu-devel] [PATCH 5/8] flatload: memp was a write-only variable X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: Juan Quintela Signed-off-by: Juan Quintela Signed-off-by: Peter Maydell --- linux-user/flatload.c | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/linux-user/flatload.c b/linux-user/flatload.c index 6fb78f5..1062da3 100644 --- a/linux-user/flatload.c +++ b/linux-user/flatload.c @@ -379,7 +379,6 @@ static int load_flat_file(struct linux_binprm * bprm, abi_long result; abi_ulong realdatastart = 0; abi_ulong text_len, data_len, bss_len, stack_len, flags; - abi_ulong memp = 0; /* for finding the brk area */ abi_ulong extra; abi_ulong reloc = 0, rp; int i, rev, relocs = 0; @@ -491,7 +490,6 @@ static int load_flat_file(struct linux_binprm * bprm, } reloc = datapos + (ntohl(hdr->reloc_start) - text_len); - memp = realdatastart; } else { @@ -506,7 +504,6 @@ static int load_flat_file(struct linux_binprm * bprm, realdatastart = textpos + ntohl(hdr->data_start); datapos = realdatastart + indx_len; reloc = (textpos + ntohl(hdr->reloc_start) + indx_len); - memp = textpos; #ifdef CONFIG_BINFMT_ZFLAT #error code needs checking