]> www.infradead.org Git - users/hch/misc.git/commit
net: stmmac: mostly remove "buf_sz"
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Wed, 5 Mar 2025 17:54:21 +0000 (17:54 +0000)
committerJakub Kicinski <kuba@kernel.org>
Thu, 6 Mar 2025 23:35:16 +0000 (15:35 -0800)
commit072dd84b4c5a85ac0d651aef7fe2ad4342cf4460
treea2e328589009c8b577bbc6b658942a3e49b99469
parentcd02ab73664dbf08dd5af8c9d3a97e8b6eb75dfc
net: stmmac: mostly remove "buf_sz"

The "buf_sz" parameter is not used in the stmmac driver - there is one
place where the value of buf_sz is validated, and two places where it
is written. It is otherwise unused.

Remove these accesses. However, leave the module parameter in place as
removing it could cause module load to fail, breaking user setups.

Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Furong Xu <0x1207@gmail.com>
Link: https://patch.msgid.link/E1tpswn-005U6I-TU@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c