From patchwork Wed Oct 22 14:21:48 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 39313 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 2B30D202DB for ; Wed, 22 Oct 2014 14:25:22 +0000 (UTC) Received: by mail-ee0-f69.google.com with SMTP id b57sf1715079eek.8 for ; Wed, 22 Oct 2014 07:25:21 -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=dG0u51ypuSzrtNtzRH+9sYAqkC5Bov8eEI30k807mew=; b=ZT4rP1YOwFodE4vnKtU83I3Rx6reA19Gzeytcvlcz7ML3XRpmojF5yAf2/nZBaybyP jAVbM35YrUovSBJUx1mBPIsX2vHx7v1af2QD+DiAt5/6UvsIQPUMzRxd7z/Hl8i+OhOI gMP2odPayUa54L0EOdEK8xEa4JhLOi2AqYcN8g179+rjL3YkKjaN3SZVC9W0+Grl5fNF k616AARg1WEyXAaCH2pZHk8RUk1PAmYB63YLbFZDrBajoMq2sKeJB9Fat9UJqxDoFKNd tf58ndRq6G9sUw11IdQiASWBVwePVpwmimlc1f7KdRepuUMlL1dEvd+bpyqlASxFCRV7 OqDA== X-Gm-Message-State: ALoCoQkwcCJD6QEIoeiA4OrRlODUAPvHgFxHk/1+Z53nVbFcAIAOPSLUAsXxQZOV7TRZsgyvfqMu X-Received: by 10.180.36.176 with SMTP id r16mr4946167wij.7.1413987921251; Wed, 22 Oct 2014 07:25:21 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.21.41 with SMTP id s9ls205154lae.41.gmail; Wed, 22 Oct 2014 07:25:21 -0700 (PDT) X-Received: by 10.112.140.74 with SMTP id re10mr41976124lbb.40.1413987921097; Wed, 22 Oct 2014 07:25:21 -0700 (PDT) Received: from mail-la0-f50.google.com (mail-la0-f50.google.com. [209.85.215.50]) by mx.google.com with ESMTPS id v2si23471574lav.132.2014.10.22.07.25.21 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 22 Oct 2014 07:25:21 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.50 as permitted sender) client-ip=209.85.215.50; Received: by mail-la0-f50.google.com with SMTP id s18so3058686lam.37 for ; Wed, 22 Oct 2014 07:25:21 -0700 (PDT) X-Received: by 10.112.221.197 with SMTP id qg5mr41646051lbc.32.1413987921002; Wed, 22 Oct 2014 07:25:21 -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 c5csp82340lbz; Wed, 22 Oct 2014 07:25:20 -0700 (PDT) X-Received: by 10.70.43.1 with SMTP id s1mr5578257pdl.56.1413987919495; Wed, 22 Oct 2014 07:25:19 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id cy3si14257594pbc.205.2014.10.22.07.25.18 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 22 Oct 2014 07:25:19 -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 1XgwpI-0000ig-8H; Wed, 22 Oct 2014 14:23:48 +0000 Received: from mail-wi0-f180.google.com ([209.85.212.180]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XgwoH-000088-1F for linux-arm-kernel@lists.infradead.org; Wed, 22 Oct 2014 14:22:45 +0000 Received: by mail-wi0-f180.google.com with SMTP id em10so1510943wid.13 for ; Wed, 22 Oct 2014 07:22:22 -0700 (PDT) X-Received: by 10.194.108.104 with SMTP id hj8mr52303822wjb.28.1413987742334; Wed, 22 Oct 2014 07:22:22 -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 10sm19063250wjs.21.2014.10.22.07.22.20 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 22 Oct 2014 07:22:21 -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 05/10] arm64/efi: drop redundant set_bit(EFI_CONFIG_TABLES) Date: Wed, 22 Oct 2014 16:21:48 +0200 Message-Id: <1413987713-30528-6-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1413987713-30528-1-git-send-email-ard.biesheuvel@linaro.org> References: <1413987713-30528-1-git-send-email-ard.biesheuvel@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20141022_072245_263546_D8504E3B X-CRM114-Status: UNSURE ( 9.62 ) X-CRM114-Notice: Please train this message. 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.180 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.180 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.50 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. 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 71ea4fc0aa8a..51522ab0c6da 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));