From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 78558C88CB2 for ; Mon, 12 Jun 2023 18:33:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=wPf9HPJ4prJ8vBdcInaH5KYkbZ+MDk5+aewHnDeTBcA=; b=ccVERsLR25Jcx3 N5YH9D6AhbwL2Ni+YPgMJU3IlLN3A9ha5QihhITFdlYKy7487rV7w526p7iYWSesz4G3TDmLylw8j li7MBWT46NwME05azz1NNUhCCKVN50jY/aN7M/n/pg3tTybBcCIqVNoKXcfKEzF+bGzBL3Zs3qcPL SdY35xFTxGx7hH6xjK7o60S7DTgHXER7+blUmZhYDrMOSuxCGMrigsh6qI7onxvmPfxCIFIFhddIm vkuPuiwoNLvxxda7wqEdLAXXSU1zwtN3Z/oF+r33O6QuX8ensQ0ytQLe+DpNUQmx09zGqkbZJayxJ FwD8Sp22XL++eA3INEHw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q8mLW-004xSk-0H; Mon, 12 Jun 2023 18:32:54 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q8mLT-004xRx-2O for linux-arm-kernel@lists.infradead.org; Mon, 12 Jun 2023 18:32:53 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1686594770; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=qSuO83O2GJF69D20JvszqVCusWGni7xZeOtz58f06pw=; b=DHYy/5+0kdRUeHu2Bj/aEOrKHROd9bJHIS6ODHD442LCZUKBSHW2yYuSrlW/mL/CKg0TsO NncmJNTMa0ZNuV0pzZMjNDV0PH6NLLEQRjxal96+Et+J/hZ545WSyMymBiBk1EmrL0IqHk wb/yhRA033vbkEratcSxcSp4iAluAog= Received: from mail-ot1-f69.google.com (mail-ot1-f69.google.com [209.85.210.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-145-V4oguqxyOuKEiteKicMr5w-1; Mon, 12 Jun 2023 14:32:49 -0400 X-MC-Unique: V4oguqxyOuKEiteKicMr5w-1 Received: by mail-ot1-f69.google.com with SMTP id 46e09a7af769-6b29bbec42aso2283478a34.3 for ; Mon, 12 Jun 2023 11:32:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686594767; x=1689186767; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=qSuO83O2GJF69D20JvszqVCusWGni7xZeOtz58f06pw=; b=F8pzGieD9iJkvAiE9frCsFwUjVzvXDy5nmp3FpAlOpzFoCnCuET+L3A0Sz+WsdYtLq +aCCzvv10zMlZhkGk6QqxvnjCrdPMBQGhmO4755JdW4RsTxz2JfBPWLozsDpxPe7TIoY ZXQsbj0UY4Q0u3Uj/L+atPlX8h7vPSySQX5LWFAiuDTzT7ya2rhLtKYy9Vs9IoxrWcGO IBygbjuAGi8wm/Q4w/h1USPf01c/1co4ezmGccUUQayiR49Ze5SvqSwCRJTuBTEG3Bzh K6FfAyisD2vcRPCMmpnQ20UfsW1LZfaci0nn2MqNniojvAmgAq7t0LyP+tQtkAqfwNli Rmng== X-Gm-Message-State: AC+VfDxK0nYLsiHMmfxdVXxKWS9/uSDckW8GM7xkr3zKAb9vpehWY3hB tgxhzq8WCTS4yX/ci4TxLBCYaXRYH7j9rNaqlkdN++KDJSrSmtrGi4imiFDf0pIyd5c746we+Aq VwHTXb94N4f8df24K4wvTo0nZxvld1uVhNDI= X-Received: by 2002:a05:6830:92:b0:6a5:dd70:38cd with SMTP id a18-20020a056830009200b006a5dd7038cdmr6651291oto.2.1686594767178; Mon, 12 Jun 2023 11:32:47 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5HntANaGm+HkD+UPQVxKZBUJkVk1zEqMvLrahjA8N+vIH05i26ddN13SkrcVSLU5flZVuT2A== X-Received: by 2002:a05:6830:92:b0:6a5:dd70:38cd with SMTP id a18-20020a056830009200b006a5dd7038cdmr6651260oto.2.1686594766931; Mon, 12 Jun 2023 11:32:46 -0700 (PDT) Received: from halaney-x13s ([2600:1700:1ff0:d0e0::45]) by smtp.gmail.com with ESMTPSA id w14-20020a056830060e00b006af9d8af435sm4138880oti.50.2023.06.12.11.32.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Jun 2023 11:32:46 -0700 (PDT) Date: Mon, 12 Jun 2023 13:32:43 -0500 From: Andrew Halaney To: Bartosz Golaszewski Cc: Vinod Koul , Bhupesh Sharma , Andy Gross , Bjorn Andersson , Konrad Dybcio , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Kishon Vijay Abraham I , Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , netdev@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com, Bartosz Golaszewski Subject: Re: [PATCH 06/26] net: stmmac: dwmac-qcom-ethqos: rename a label in probe() Message-ID: <20230612183243.5rkphsaqofi42bgc@halaney-x13s> References: <20230612092355.87937-1-brgl@bgdev.pl> <20230612092355.87937-7-brgl@bgdev.pl> MIME-Version: 1.0 In-Reply-To: <20230612092355.87937-7-brgl@bgdev.pl> X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Disposition: inline X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230612_113251_858201_4972FE0A X-CRM114-Status: GOOD ( 18.74 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, Jun 12, 2023 at 11:23:35AM +0200, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > The err_mem label's name is unclear. It actually should be reached on > any error after stmmac_probe_config_dt() succeeds. Name it after the > cleanup action that needs to be called before exiting. > > Signed-off-by: Bartosz Golaszewski Reviewed-by: Andrew Halaney > --- > .../ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c | 14 +++++++------- > 1 file changed, 7 insertions(+), 7 deletions(-) > > diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c > index 2da0738eed24..16e856861558 100644 > --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c > +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c > @@ -615,14 +615,14 @@ static int qcom_ethqos_probe(struct platform_device *pdev) > ethqos = devm_kzalloc(&pdev->dev, sizeof(*ethqos), GFP_KERNEL); > if (!ethqos) { > ret = -ENOMEM; > - goto err_mem; > + goto out_config_dt; > } > > ethqos->pdev = pdev; > ethqos->rgmii_base = devm_platform_ioremap_resource_byname(pdev, "rgmii"); > if (IS_ERR(ethqos->rgmii_base)) { > ret = PTR_ERR(ethqos->rgmii_base); > - goto err_mem; > + goto out_config_dt; > } > > data = of_device_get_match_data(&pdev->dev); > @@ -634,16 +634,16 @@ static int qcom_ethqos_probe(struct platform_device *pdev) > ethqos->rgmii_clk = devm_clk_get(&pdev->dev, "rgmii"); > if (IS_ERR(ethqos->rgmii_clk)) { > ret = PTR_ERR(ethqos->rgmii_clk); > - goto err_mem; > + goto out_config_dt; > } > > ret = ethqos_clks_config(ethqos, true); > if (ret) > - goto err_mem; > + goto out_config_dt; > > ret = devm_add_action_or_reset(&pdev->dev, ethqos_clks_disable, ethqos); > if (ret) > - goto err_mem; > + goto out_config_dt; > > ethqos->speed = SPEED_1000; > ethqos_update_rgmii_clk(ethqos, SPEED_1000); > @@ -662,11 +662,11 @@ static int qcom_ethqos_probe(struct platform_device *pdev) > > ret = stmmac_dvr_probe(&pdev->dev, plat_dat, &stmmac_res); > if (ret) > - goto err_mem; > + goto out_config_dt; > > return ret; > > -err_mem: > +out_config_dt: > stmmac_remove_config_dt(pdev, plat_dat); > > return ret; > -- > 2.39.2 > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel