From: Tomas Alvarez Vanoli Date: Thu, 26 Mar 2026 10:02:32 +0000 (+0100) Subject: net: wan/fsl_ucc_hdlc: cleanup ucc_hdlc_poll X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=57ec1622b62ae8dcd88a0084c49c5b72b1850e68;p=thirdparty%2Flinux.git net: wan/fsl_ucc_hdlc: cleanup ucc_hdlc_poll 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 Reviewed-by: Christophe Leroy (CS GROUP) Link: https://patch.msgid.link/20260326100232.904289-1-tomas.alvarez-vanoli@hitachienergy.com Signed-off-by: Jakub Kicinski --- 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);