From patchwork Thu Nov 29 17:12:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 152414 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp2634008ljp; Thu, 29 Nov 2018 09:12:55 -0800 (PST) X-Google-Smtp-Source: AFSGD/W6pMWS5w50Czchp/P5F4e3ySpsVYu3YCUI78CW5HCZZoCNU+DFuJn5jsi94dxw0DGsFz1O X-Received: by 2002:a63:2f86:: with SMTP id v128mr1826577pgv.407.1543511575566; Thu, 29 Nov 2018 09:12:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543511575; cv=none; d=google.com; s=arc-20160816; b=0NkLM7mboQ8U79S4Nynb2fD/uLqXcdIUciLOdRpBGMqUaiIsiAx6maG6Y5WQQ5Y+Fr U0eN8gsSW2MX2/nDh/5WIHR1bJU+wuXpSDjQJnGnS9AOu1vwl+f9t/nCFKtRnRhNTfyQ zshnEMgAUXcGTfQ2R4vm2JeboFaIzaR/4YkuA5Dd6g7ji7YgoiXg7PRIQK7LNfgsimqh wMfpdbJM+wUH6rtPW4ec26ZCNU7ItXCXM+LFQWEeVjfERmiiW1Ov7JkkUOjldoXRHgLM GUtkwBqroPQPv+wO+AquqNRq1WJMub3zyfC+Ebe7IS4fKStBowAODJmRz9+B6wH6/NNk arDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=W6pQ+cWziH5wp1GX7RQuhsmgKROae0TuArs9rA7OjYM=; b=czC4MORKHucNNdCNH73MUP9WoBugpBIjYN3u1vSJIz2BwIzhjL8k/8zKA9RPDM1IBd Q2Lp/ZNrLQpHoEGNTwJCix6QdSdPN11yl2IaZiP5Tz/Irirkry/8XZ7/T0yX2cwOeRrG HcHoo78EU/Hup/WLYNVwss7ft90A/uVWmYo/ON1gg5AEcMUiMctkQc8+CcYp9YAghprp Yz1r/8McrDfxTJuu7dwLAdiizPFbIxjDaMj8ngsRboI7vdY8qktOzL8rPpXHNp7M1pAm GQmGkGhrfrkwf+ozBmjDlSggEZr/FOBEDYTO/Bsv27r1FDLFvUEQlkjyCzSSonp5ysU7 S73A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Nj8ypOD3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e8si2375768pgn.325.2018.11.29.09.12.55; Thu, 29 Nov 2018 09:12:55 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Nj8ypOD3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730502AbeK3ES6 (ORCPT + 32 others); Thu, 29 Nov 2018 23:18:58 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:42183 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728255AbeK3ES5 (ORCPT ); Thu, 29 Nov 2018 23:18:57 -0500 Received: by mail-wr1-f65.google.com with SMTP id q18so2675801wrx.9 for ; Thu, 29 Nov 2018 09:12:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=W6pQ+cWziH5wp1GX7RQuhsmgKROae0TuArs9rA7OjYM=; b=Nj8ypOD3m5NUeeLg32+/ZRUO7WepVP/zGVgu7Q921+VN4GoCB30KMRPfmc9P+sW49v rMiPjx0DQtqOXP9JaRFfCLdDDHMfoHsuOoAIdB+OiFMa/PFbB4pLv8CLFnBg221Co+IH L6oKyi3GO0r2h4sxm4Ofk5UlIbTgInq0LD8QQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=W6pQ+cWziH5wp1GX7RQuhsmgKROae0TuArs9rA7OjYM=; b=eRWCa6epoaRjIkdEhg3mDyw06eBkDUC/WE8c+z/RZIBMmDNhB4t/3MWlMLdNXMCCcN gPQHJewj4qSMwesiWWR5R2d4HIk40Y1J2SI5UL/TZO718lrz6Hutdh0CU1el5uwMxTEv dnUu+fGSferAyOBRbvDNqijcxMLn/L6hq4zPf/XP45Fe4zU3T/TYdkUyinkPNvMfEQq+ FtJvg0iA6Ns2wew1xA4CUTZqPHmUPz62OdYJuNqu34mUz9M7xJhjzK4INoTH/pqdkbED KOYj/Ci7lgdizvxIMMaq087iVzfDheNNgs34UakHc/IcTSOzk3GzBHloLHKtW8wFd8fW cmBQ== X-Gm-Message-State: AA+aEWZuzcjP5i7LOB0OXFQUWZh0MoGfX/8SbNQ4tI+jWr3Tfcx7jNg4 VYlP7BPt7m+JXcBUQ1o0NblZyA== X-Received: by 2002:adf:f550:: with SMTP id j16mr2112685wrp.258.1543511571113; Thu, 29 Nov 2018 09:12:51 -0800 (PST) Received: from harold.home ([2a01:cb1d:112:6f00:f070:d240:312e:9f99]) by smtp.gmail.com with ESMTPSA id y185sm1593882wmg.34.2018.11.29.09.12.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 29 Nov 2018 09:12:50 -0800 (PST) From: Ard Biesheuvel To: linux-efi@vger.kernel.org, Ingo Molnar , Thomas Gleixner Cc: Ard Biesheuvel , linux-kernel@vger.kernel.org, Andy Lutomirski , Arend van Spriel , Bhupesh Sharma , Borislav Petkov , Dave Hansen , Eric Snowberg , Hans de Goede , Joe Perches , Jon Hunter , Julien Thierry , Marc Zyngier , Nathan Chancellor , Peter Zijlstra , Sai Praneeth Prakhya , Sedat Dilek , YiFei Zhu Subject: [PATCH 02/11] efi/fdt: Indentation fix Date: Thu, 29 Nov 2018 18:12:21 +0100 Message-Id: <20181129171230.18699-3-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181129171230.18699-1-ard.biesheuvel@linaro.org> References: <20181129171230.18699-1-ard.biesheuvel@linaro.org> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Julien Thierry Closing bracket seems to end a for statement when it is actually ending the contained if. Add some brackets to have clear delimitation of each scope. No functional change/fix, just fix the indentation. Signed-off-by: Julien Thierry Signed-off-by: Ard Biesheuvel --- drivers/firmware/efi/libstub/fdt.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) -- 2.19.1 diff --git a/drivers/firmware/efi/libstub/fdt.c b/drivers/firmware/efi/libstub/fdt.c index 0c0d2312f4a8..a3614f9b5f75 100644 --- a/drivers/firmware/efi/libstub/fdt.c +++ b/drivers/firmware/efi/libstub/fdt.c @@ -376,7 +376,7 @@ void *get_fdt(efi_system_table_t *sys_table, unsigned long *fdt_size) tables = (efi_config_table_t *) sys_table->tables; fdt = NULL; - for (i = 0; i < sys_table->nr_tables; i++) + for (i = 0; i < sys_table->nr_tables; i++) { if (efi_guidcmp(tables[i].guid, fdt_guid) == 0) { fdt = (void *) tables[i].table; if (fdt_check_header(fdt) != 0) { @@ -385,7 +385,8 @@ void *get_fdt(efi_system_table_t *sys_table, unsigned long *fdt_size) } *fdt_size = fdt_totalsize(fdt); break; - } + } + } return fdt; }