]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: macb: drop `count` local variable in macb_tx_map()
authorThéo Lebrun <theo.lebrun@bootlin.com>
Tue, 14 Oct 2025 15:25:14 +0000 (17:25 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 16 Oct 2025 23:59:28 +0000 (16:59 -0700)
commitb5fe4f3e5912d79832bc37b207234aaf84c1b789
treef439d6bdd2cc934047bfec5743ae05d0ad4afda2
parent027202adf07952d9b4d7a3199fe1014a537e7a81
net: macb: drop `count` local variable in macb_tx_map()

Local variable `count` is useless: it counts number of DMA descriptors
used and returns it. But the return value is only checked for error.
Drop counting the number of DMA descriptors and return a usual
negative-if-error integer.

Signed-off-by: Théo Lebrun <theo.lebrun@bootlin.com>
Link: https://patch.msgid.link/20251014-macb-cleanup-v1-13-31cd266e22cd@bootlin.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/cadence/macb_main.c