From patchwork Fri Feb 8 08:08:52 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 157815 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp1664642jaa; Fri, 8 Feb 2019 00:10:54 -0800 (PST) X-Google-Smtp-Source: AHgI3IaEdAfDJFk6iqu811jRc5Z9fZ0aAaVsz/Dnl5iahMh6WmEodJjKoP6MeTfUuUv8Owlq9csJ X-Received: by 2002:a17:902:8643:: with SMTP id y3mr8728297plt.80.1549613454054; Fri, 08 Feb 2019 00:10:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549613454; cv=none; d=google.com; s=arc-20160816; b=gFGcvEOLkdkQx2rrlNhuMYo8ZQy7Q+ly5o3omIqDBeptFae9bCLoPBBYUKu9yBLr13 5mKJdD34mKdk5Jd/edc40A8g+auKX78coF4aQOwlgoYu4yIuLEjpMd/1l/znTvCbvzEv bmgavIrCKVyokVde+bguAQ6brpk0ugPEsZUObXt/4SicSCD+7xfQtCd3qmPebSVzDjxB J9M7U+DEjh8yndkef9jqqwN/NkiLrcFVDK1L8jzPaxOgKGCvqp5MYZ8xDh36F34qyiFp 1VTtHJEPcnZGrlU0zR3sG/OAdzFbxAxQdlDNbV3bqHEc20PVOl80zGL5R2L60Ci94zc2 OoSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=mmmNIad85Z00UT/gAne8xw5tDTiobUiwOXN0ahE1tag=; b=AvzXzUud3rVYRWKvv1kZ1ghOCItAo6p2c6rBlumLnrzAQYhYwmC9k+rg7AsJfRgZPt 1Ft1GWYBzsegoOSRZM+gdaXB+sDGGMbQJF9e0LG9vlCwU9+A5ZsnB91XpuBv1fCDIt5j FXL+h6h2N0KoZXP45klhobO13X/HN2ftO8d8c8Kooaf8BbJCAxI0XhJiLX2fM1zNAvGq zUYoRBW1Q5IiXT0bP/BNXxFqWhXOjWhQfHGKusGPq90Ar0v/RsfB2hsdiMNcWoeWjZA0 E/nnoUCVpE5E2OBv5NaYUeMetibAre8E9XwiWpd2FFnLekNkDTw7o0GAcJlPiaASCWCH LKig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=P2+WA9+4; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g10si1547771plq.371.2019.02.08.00.10.53; Fri, 08 Feb 2019 00:10:54 -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=@nifty.com header.s=dec2015msa header.b=P2+WA9+4; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727491AbfBHIKw (ORCPT + 31 others); Fri, 8 Feb 2019 03:10:52 -0500 Received: from conuserg-07.nifty.com ([210.131.2.74]:62750 "EHLO conuserg-07.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727442AbfBHIKr (ORCPT ); Fri, 8 Feb 2019 03:10:47 -0500 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-07.nifty.com with ESMTP id x188902H007241; Fri, 8 Feb 2019 17:09:08 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-07.nifty.com x188902H007241 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1549613349; bh=mmmNIad85Z00UT/gAne8xw5tDTiobUiwOXN0ahE1tag=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=P2+WA9+4GBQPvmz7S5k2va4Jc7H4O347SObQ8GUdNwe+sgiOHZG7j/PhlH/UP0h+P DG2p8WAwEwJAQRrur+GDv+hvEjJMiA5BICFMLPS2OZFHO6fRBNWjVPr5BeG67l24iS dwEabo0aK16ToeihD/4FjmV9l5GKbpExgKtP8/qI8zJ424cBs/u7shCetoadla93NK N6xp8/R9vGtpE99uVv18X/jTAm/yQfWiqnlhBUVoql4j1IDo/rxkmC14HItD/9PyqI AIIQUPwbkqIAYpbNs1JJrmVgtovReWWoCSq/wUjwjNlf9gik0SsqlTwGCUbHj8lTzb wa4sA5Tt+7k9g== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: linux-mtd@lists.infradead.org, Miquel Raynal Cc: Boris Brezillon , Masahiro Yamada , Brian Norris , linux-kernel@vger.kernel.org, Marek Vasut , Richard Weinberger , David Woodhouse Subject: [PATCH 08/11] mtd: rawnand: denali_pci: rename goto labels Date: Fri, 8 Feb 2019 17:08:52 +0900 Message-Id: <1549613335-30319-9-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1549613335-30319-1-git-send-email-yamada.masahiro@socionext.com> References: <1549613335-30319-1-git-send-email-yamada.masahiro@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As Documentation/process/coding-style.rst says, choose label names which say what the goto does. The out_ label style is already used in denali_dt.c. Rename likewise for denali_pci.c Signed-off-by: Masahiro Yamada --- drivers/mtd/nand/raw/denali_pci.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) -- 2.7.4 diff --git a/drivers/mtd/nand/raw/denali_pci.c b/drivers/mtd/nand/raw/denali_pci.c index 48e9ac5..02eb599 100644 --- a/drivers/mtd/nand/raw/denali_pci.c +++ b/drivers/mtd/nand/raw/denali_pci.c @@ -84,20 +84,20 @@ static int denali_pci_probe(struct pci_dev *dev, const struct pci_device_id *id) if (!denali->host) { dev_err(&dev->dev, "Spectra: ioremap_nocache failed!"); ret = -ENOMEM; - goto failed_remap_reg; + goto out_unmap_reg; } ret = denali_init(denali); if (ret) - goto failed_remap_mem; + goto out_unmap_host; pci_set_drvdata(dev, denali); return 0; -failed_remap_mem: +out_unmap_host: iounmap(denali->host); -failed_remap_reg: +out_unmap_reg: iounmap(denali->reg); return ret; }