public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
From: "Christophe Leroy (CS GROUP)" <chleroy@kernel.org>
To: Tomas Alvarez Vanoli <tomas.alvarez-vanoli@hitachienergy.com>,
	netdev@vger.kernel.org, linuxppc-dev@lists.ozlabs.org
Cc: qiang.zhao@nxp.com, andrew+netdev@lunn.ch
Subject: Re: [PATCH] net: wan/fsl_ucc_hdlc: cleanup ucc_hdlc_poll
Date: Thu, 26 Mar 2026 13:17:18 +0100	[thread overview]
Message-ID: <fea7935a-ddd7-4ac2-a2f4-622133b91281@kernel.org> (raw)
In-Reply-To: <20260326100232.904289-1-tomas.alvarez-vanoli@hitachienergy.com>



Le 26/03/2026 à 11:02, Tomas Alvarez Vanoli a écrit :
> Immediately after setting to 0 we are adding to it, and subtracting 0
> from budget. Replace with just assignment and no subtraction.
> 
> Signed-off-by: Tomas Alvarez Vanoli <tomas.alvarez-vanoli@hitachienergy.com>

Reviewed-by: Christophe Leroy (CS GROUP) <chleroy@kernel.org>

> ---
>   drivers/net/wan/fsl_ucc_hdlc.c | 3 +--
>   1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/drivers/net/wan/fsl_ucc_hdlc.c b/drivers/net/wan/fsl_ucc_hdlc.c
> index b72ab9951875e..3bd57527b1be6 100644
> --- a/drivers/net/wan/fsl_ucc_hdlc.c
> +++ b/drivers/net/wan/fsl_ucc_hdlc.c
> @@ -628,8 +628,7 @@ static int ucc_hdlc_poll(struct napi_struct *napi, int budget)
>          hdlc_tx_done(priv);
>          spin_unlock(&priv->lock);
> 
> -       howmany = 0;
> -       howmany += hdlc_rx_done(priv, budget - howmany);
> +       howmany = hdlc_rx_done(priv, budget);
> 
>          if (howmany < budget) {
>                  napi_complete_done(napi, howmany);
> --
> 2.47.3
> 
> 


      reply	other threads:[~2026-03-26 12:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-26 10:02 [PATCH] net: wan/fsl_ucc_hdlc: cleanup ucc_hdlc_poll Tomas Alvarez Vanoli
2026-03-26 12:17 ` Christophe Leroy (CS GROUP) [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=fea7935a-ddd7-4ac2-a2f4-622133b91281@kernel.org \
    --to=chleroy@kernel.org \
    --cc=andrew+netdev@lunn.ch \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=netdev@vger.kernel.org \
    --cc=qiang.zhao@nxp.com \
    --cc=tomas.alvarez-vanoli@hitachienergy.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