From: Tomas Alvarez Vanoli <tomas.alvarez-vanoli@hitachienergy.com>
To: netdev@vger.kernel.org, linuxppc-dev@lists.ozlabs.org
Cc: qiang.zhao@nxp.com, andrew+netdev@lunn.ch,
Tomas Alvarez Vanoli <tomas.alvarez-vanoli@hitachienergy.com>
Subject: [PATCH] net: wan/fsl_ucc_hdlc: cleanup ucc_hdlc_poll
Date: Thu, 26 Mar 2026 11:02:32 +0100 [thread overview]
Message-ID: <20260326100232.904289-1-tomas.alvarez-vanoli@hitachienergy.com> (raw)
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>
---
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
next reply other threads:[~2026-03-26 10:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-26 10:02 Tomas Alvarez Vanoli [this message]
2026-03-26 12:17 ` [PATCH] net: wan/fsl_ucc_hdlc: cleanup ucc_hdlc_poll Christophe Leroy (CS GROUP)
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=20260326100232.904289-1-tomas.alvarez-vanoli@hitachienergy.com \
--to=tomas.alvarez-vanoli@hitachienergy.com \
--cc=andrew+netdev@lunn.ch \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=netdev@vger.kernel.org \
--cc=qiang.zhao@nxp.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