From patchwork Sat Mar 25 00:05:02 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shuah Khan X-Patchwork-Id: 9644281 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 88A3260327 for ; Sat, 25 Mar 2017 00:06:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7A01C26907 for ; Sat, 25 Mar 2017 00:06:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6ED97279E0; Sat, 25 Mar 2017 00:06:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 2185B26907 for ; Sat, 25 Mar 2017 00:06:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=AnCUOFyRsxFWWeSzCn1ICV5eUC1zbPuxIn+8KPP/C+c=; b=ZvslZeThQYQAjMYrIWsmFxRQ1r KA1LI/SF1EH9osNc9gw/gaCmsPowjTfRQh2fXSH2X+aq9gVVsdjiHnFd22nxJr2u0Ueuf0OCC/mhR U+aydWxZC83JtybUokcN4oMtzVuTUqgeRkj4NtVVxbMyU+fhvmqZTYCVqj4HuCIhvPF/jzgyg8653 KgU/d/VcQBD/MT9ExBS+tpPZHLkibA8YX+zKiocgb5KkzFrt1VJDXiWO2JHTx/E0MINWZ7BkVGN5t 6z9Akn88MVeQFQgXQDxYSfbvtvhdJ5+z7yWeU7ho3nYBKUYZcWSiWgWLdqsgjzB5uXFBXw8nHLkXU pN7188/w==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1crZDz-0003dG-76; Sat, 25 Mar 2017 00:06:31 +0000 Received: from ec2-52-27-115-49.us-west-2.compute.amazonaws.com ([52.27.115.49] helo=osg.samsung.com) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1crZD4-0002hI-3R for linux-arm-kernel@lists.infradead.org; Sat, 25 Mar 2017 00:05:37 +0000 Received: from localhost (localhost [127.0.0.1]) by osg.samsung.com (Postfix) with ESMTP id EA503A05F1; Sat, 25 Mar 2017 00:05:39 +0000 (UTC) X-Virus-Scanned: amavisd-new at osg.samsung.com X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" Received: from osg.samsung.com ([127.0.0.1]) by localhost (s-opensource.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20zi863adTPF; Sat, 25 Mar 2017 00:05:39 +0000 (UTC) Received: from localhost.localdomain (c-73-181-52-62.hsd1.co.comcast.net [73.181.52.62]) by osg.samsung.com (Postfix) with ESMTPSA id F0A39A05EE; Sat, 25 Mar 2017 00:05:38 +0000 (UTC) From: Shuah Khan To: balbi@kernel.org, gregkh@linuxfoundation.org, kgene@kernel.org, krzk@kernel.org, javier@osg.samsung.com Subject: [PATCH 4/7] usb: dwc3: exynos: change goto labels in this file to meaningful names Date: Fri, 24 Mar 2017 18:05:02 -0600 Message-Id: X-Mailer: git-send-email 2.9.3 In-Reply-To: References: In-Reply-To: References: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170324_170534_232755_BC980D22 X-CRM114-Status: UNSURE ( 6.79 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-samsung-soc@vger.kernel.org, linux-usb@vger.kernel.org, Shuah Khan , linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Change goto labels in this file to meaningful names Signed-off-by: Shuah Khan --- drivers/usb/dwc3/dwc3-exynos.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/usb/dwc3/dwc3-exynos.c b/drivers/usb/dwc3/dwc3-exynos.c index 98f74ff..11f31f4 100644 --- a/drivers/usb/dwc3/dwc3-exynos.c +++ b/drivers/usb/dwc3/dwc3-exynos.c @@ -58,12 +58,12 @@ static int dwc3_exynos_register_phys(struct dwc3_exynos *exynos) ret = platform_device_add_data(exynos->usb2_phy, &pdata, sizeof(pdata)); if (ret) - goto err1; + goto usb2_phy_device_put; pdev = platform_device_alloc("usb_phy_generic", PLATFORM_DEVID_AUTO); if (!pdev) { ret = -ENOMEM; - goto err1; + goto usb2_phy_device_put; } exynos->usb3_phy = pdev; @@ -71,25 +71,25 @@ static int dwc3_exynos_register_phys(struct dwc3_exynos *exynos) ret = platform_device_add_data(exynos->usb3_phy, &pdata, sizeof(pdata)); if (ret) - goto err2; + goto usb3_phy_device_put; ret = platform_device_add(exynos->usb2_phy); if (ret) - goto err2; + goto usb3_phy_device_put; ret = platform_device_add(exynos->usb3_phy); if (ret) - goto err3; + goto usb2_phy_device_del; return 0; -err3: +usb2_phy_device_del: platform_device_del(exynos->usb2_phy); -err2: +usb3_phy_device_put: platform_device_put(exynos->usb3_phy); -err1: +usb2_phy_device_put: platform_device_put(exynos->usb2_phy); return ret;