From patchwork Tue Oct 28 16:18:38 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 39681 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f69.google.com (mail-ee0-f69.google.com [74.125.83.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D953624026 for ; Tue, 28 Oct 2014 16:22:30 +0000 (UTC) Received: by mail-ee0-f69.google.com with SMTP id c13sf911421eek.4 for ; Tue, 28 Oct 2014 09:22:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:subject:date:message-id :in-reply-to:references:cc:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:mime-version:sender :errors-to:x-original-sender:x-original-authentication-results :mailing-list:content-type:content-transfer-encoding; bh=7NBUXprERy7sxg/t96OC+FpiyQ2wbglpITK0t6a6kqM=; b=dbhdTwb9YG5dq1KDw+soO3kTg+Svn4HPfCSleCZIypk+JO0Pivv8ZZZJIIZ5wt25+1 ES5MxhEQPiQKfbCO4o5A+OD4kAtRC8cWAY8FNR7qjciriBw8GuR0ne6U+OPtNhO4p3Wu HPW1+bduRJB0yMTe5kaC7n52Ri2mAj+gNipXXXnvktqLorCZlovn4iJ66lHbyv3m6KuD MyRJxl/kkYViwfKaWVSe9J3PCnOUcRS1DHRzv00hupSxC9mNaTxFI4tuefKL4irVFKiR SfruwwoUmIjukjd64aEV+5+py6QjvMvJJq0zNTwssNSTP0nQGCpRFOP8qviRtCUCTC0i FIbQ== X-Gm-Message-State: ALoCoQnLLL74famgjjjCA/8rGB+4SqFa5DsUhvLka7pHz0X9yPW1bwnne7lHGzCBdteh4ZBZMFgB X-Received: by 10.194.100.98 with SMTP id ex2mr407826wjb.6.1414513349907; Tue, 28 Oct 2014 09:22:29 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.36.138 with SMTP id q10ls86693laj.83.gmail; Tue, 28 Oct 2014 09:22:29 -0700 (PDT) X-Received: by 10.112.85.138 with SMTP id h10mr5115524lbz.33.1414513349736; Tue, 28 Oct 2014 09:22:29 -0700 (PDT) Received: from mail-la0-f51.google.com (mail-la0-f51.google.com. [209.85.215.51]) by mx.google.com with ESMTPS id ps4si3313403lbb.16.2014.10.28.09.22.29 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 28 Oct 2014 09:22:29 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.51 as permitted sender) client-ip=209.85.215.51; Received: by mail-la0-f51.google.com with SMTP id q1so939481lam.24 for ; Tue, 28 Oct 2014 09:22:29 -0700 (PDT) X-Received: by 10.112.130.41 with SMTP id ob9mr5080274lbb.74.1414513349389; Tue, 28 Oct 2014 09:22:29 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.84.229 with SMTP id c5csp510601lbz; Tue, 28 Oct 2014 09:22:28 -0700 (PDT) X-Received: by 10.67.14.129 with SMTP id fg1mr4459970pad.114.1414513347308; Tue, 28 Oct 2014 09:22:27 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id zy8si1785125pbc.39.2014.10.28.09.22.26 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Oct 2014 09:22:27 -0700 (PDT) Received-SPF: none (google.com: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org does not designate permitted sender hosts) client-ip=2001:1868:205::9; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Xj9Vx-00066p-B3; Tue, 28 Oct 2014 16:20:57 +0000 Received: from mail-wi0-f178.google.com ([209.85.212.178]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Xj9UP-00041d-JS for linux-arm-kernel@lists.infradead.org; Tue, 28 Oct 2014 16:19:22 +0000 Received: by mail-wi0-f178.google.com with SMTP id q5so2126292wiv.5 for ; Tue, 28 Oct 2014 09:18:59 -0700 (PDT) X-Received: by 10.194.203.201 with SMTP id ks9mr5355956wjc.105.1414513139339; Tue, 28 Oct 2014 09:18:59 -0700 (PDT) Received: from ards-macbook-pro.local (cag06-7-83-153-85-71.fbx.proxad.net. [83.153.85.71]) by mx.google.com with ESMTPSA id wc7sm2357578wjc.8.2014.10.28.09.18.57 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 28 Oct 2014 09:18:58 -0700 (PDT) From: Ard Biesheuvel To: leif.lindholm@linaro.org, roy.franz@linaro.org, msalter@redhat.com, mark.rutland@arm.com, will.deacon@arm.com, catalin.marinas@arm.com, matt.fleming@intel.com, linux-efi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, dyoung@redhat.com, yi.li@linaro.org Subject: [PATCH v2 05/10] arm64/efi: drop redundant set_bit(EFI_CONFIG_TABLES) Date: Tue, 28 Oct 2014 17:18:38 +0100 Message-Id: <1414513123-20400-6-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1414513123-20400-1-git-send-email-ard.biesheuvel@linaro.org> References: <1414513123-20400-1-git-send-email-ard.biesheuvel@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20141028_091921_820986_0ED31F85 X-CRM114-Status: GOOD ( 10.19 ) X-Spam-Score: -0.7 (/) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-0.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.212.178 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [209.85.212.178 listed in wl.mailspike.net] -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders Cc: Ard Biesheuvel X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ard.biesheuvel@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.51 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 The EFI_CONFIG_TABLES bit already gets set by efi_config_init(), so there is no reason to set it again after this function returns successfully. Acked-by: Will Deacon Signed-off-by: Ard Biesheuvel --- arch/arm64/kernel/efi.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/arm64/kernel/efi.c b/arch/arm64/kernel/efi.c index 2e829148fb36..558572ef1ea3 100644 --- a/arch/arm64/kernel/efi.c +++ b/arch/arm64/kernel/efi.c @@ -112,8 +112,6 @@ static int __init uefi_init(void) efi.systab->hdr.revision & 0xffff, vendor); retval = efi_config_init(NULL); - if (retval == 0) - set_bit(EFI_CONFIG_TABLES, &efi.flags); out: early_memunmap(efi.systab, sizeof(efi_system_table_t));