public inbox for stable@vger.kernel.org
 help / color / mirror / Atom feed
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Chukun Pan <amadeus@jmu.edu.cn>
Cc: Sasha Levin <sashal@kernel.org>, stable@vger.kernel.org
Subject: Re: [PATCH 5.10.y 1/1] net: ethernet: mtk_eth_soc: remove duplicate if statements
Date: Mon, 22 Jan 2024 09:49:29 -0800	[thread overview]
Message-ID: <2024012205-neon-tabasco-7628@gregkh> (raw)
In-Reply-To: <20240122130219.220316-1-amadeus@jmu.edu.cn>

On Mon, Jan 22, 2024 at 09:02:19PM +0800, Chukun Pan wrote:
> It seems that there was something wrong with backport,
> causing `if (err)` to appear twice in the same place.
> 
> Fixes: da86a63479e ("net: ethernet: mtk_eth_soc: fix error handling in mtk_open()")
> Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
> ---
>  drivers/net/ethernet/mediatek/mtk_eth_soc.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/drivers/net/ethernet/mediatek/mtk_eth_soc.c b/drivers/net/ethernet/mediatek/mtk_eth_soc.c
> index aa9e616cc1d5..011210e6842d 100644
> --- a/drivers/net/ethernet/mediatek/mtk_eth_soc.c
> +++ b/drivers/net/ethernet/mediatek/mtk_eth_soc.c
> @@ -2302,7 +2302,6 @@ static int mtk_open(struct net_device *dev)
>  	if (!refcount_read(&eth->dma_refcnt)) {
>  		int err = mtk_start_dma(eth);
>  
> -		if (err)
>  		if (err) {
>  			phylink_disconnect_phy(mac->phylink);
>  			return err;
> -- 
> 2.25.1
> 
> 

Now queued up, thanks.  Odd that no one actually caught this, I guess
the driver is NOT being built by any type of test configurations?  Why
is that?

thanks,

greg k-h

      reply	other threads:[~2024-01-22 17:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-22 13:02 [PATCH 5.10.y 1/1] net: ethernet: mtk_eth_soc: remove duplicate if statements Chukun Pan
2024-01-22 17:49 ` Greg Kroah-Hartman [this message]

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=2024012205-neon-tabasco-7628@gregkh \
    --to=gregkh@linuxfoundation.org \
    --cc=amadeus@jmu.edu.cn \
    --cc=sashal@kernel.org \
    --cc=stable@vger.kernel.org \
    /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