mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Florian Fainelli <florian.fainelli@broadcom.com>
To: Justin Chen <justin.chen@broadcom.com>,
	Markus Elfring <Markus.Elfring@web.de>
Cc: Jakub Kicinski <kuba@kernel.org>,
	Wojciech Drewek <wojciech.drewek@intel.com>,
	Julia Lawall <Julia.Lawall@inria.fr>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@google.com>,
	Paolo Abeni <pabeni@redhat.com>,
	bcm-kernel-feedback-list@broadcom.com, netdev@vger.kernel.org,
	kernel-janitors@vger.kernel.org, cocci@inria.fr,
	LKML <linux-kernel@vger.kernel.org>,
	Simon Horman <horms@kernel.org>
Subject: Re: net: bcmasp: Use common error handling code in bcmasp_probe()
Date: Wed, 8 Nov 2023 09:46:47 -0800	[thread overview]
Message-ID: <4053e838-e5cf-4450-8067-21bdec989d1b@broadcom.com> (raw)
In-Reply-To: <CALSSxFYRgPwEq+QhCOYPqrtae8RvL=jTOcz4mk3vbe+Fc0QwbQ@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1007 bytes --]

On 11/7/23 10:48, Justin Chen wrote:
> On Mon, Nov 6, 2023 at 10:38 PM Markus Elfring <Markus.Elfring@web.de> wrote:
>>
>>>> Add a jump target so that a bit of exception handling can be better
>>>> reused at the end of this function.
>> …
>>>> ---
>>>>   drivers/net/ethernet/broadcom/asp2/bcmasp.c | 10 ++++++----
>>>>   1 file changed, 6 insertions(+), 4 deletions(-)
>>>
>>> The diffstat proves otherwise.
>>> Please don't send such patches to networking.
>>
>> How does this feedback fit to a change possibility which was reviewed by
>> Wojciech Drewek yesterday?
>>
>> Regards,
>> Markus
> 
> We are making the code harder to follow with these changes. Also
> adding more lines than removing. Don't think this patch is an
> improvement IMHO. NAK on my end.

Likewise, at the very least, why not have the remove_intfs label 
immediately above the of_put_exit one so then it just falls through, and 
then obviously update the return path to drop the reference count and 
return success?
-- 
Florian


[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4221 bytes --]

  reply	other threads:[~2023-11-08 17:46 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <0b2972cb-03b2-40c7-a728-6ebe2512637f@web.de>
2023-11-06 10:02 ` [PATCH] " Wojciech Drewek
     [not found]   ` <2b5e219a-85dc-4347-b5d0-86059181be93@web.de>
2023-11-06 14:24     ` Wojciech Drewek
2023-11-06 22:58 ` Jakub Kicinski
     [not found]   ` <dce77105-47ab-4ec7-8d46-b983c630dad8@web.de>
2023-11-07 18:48     ` Justin Chen
2023-11-08 17:46       ` Florian Fainelli [this message]
     [not found]         ` <38279cb8-ff60-427e-ae9f-5f973955ffa6@web.de>
2023-11-16 19:05           ` [PATCH v2] " Justin Chen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4053e838-e5cf-4450-8067-21bdec989d1b@broadcom.com \
    --to=florian.fainelli@broadcom.com \
    --cc=Julia.Lawall@inria.fr \
    --cc=Markus.Elfring@web.de \
    --cc=bcm-kernel-feedback-list@broadcom.com \
    --cc=cocci@inria.fr \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=horms@kernel.org \
    --cc=justin.chen@broadcom.com \
    --cc=kernel-janitors@vger.kernel.org \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=wojciech.drewek@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®