mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-08 18:57:22 +00:00
net: fec: remove last_bdp from fec_enet_txq_xmit_frame()
[ Upstream commitbc638eabfe] The last_bdp is initialized to bdp, and both last_bdp and bdp are not changed. That is to say that last_bdp and bdp are always equal. So bdp can be used directly. Signed-off-by: Wei Fang <wei.fang@nxp.com> Reviewed-by: Simon Horman <simon.horman@corigine.com> Link: https://lore.kernel.org/r/20230529022615.669589-1-wei.fang@nxp.com Signed-off-by: Paolo Abeni <pabeni@redhat.com> Stable-dep-of:20f7973990("net: fec: recycle pages for transmitted XDP frames") Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
9541f33a2d
commit
dd8403cf52
1 changed files with 2 additions and 4 deletions
Loading…
Add table
Add a link
Reference in a new issue