summaryrefslogtreecommitdiff
path: root/scripts/checkstack.pl
diff options
context:
space:
mode:
authorThéo Lebrun <theo.lebrun@bootlin.com>2025-10-14 18:25:07 +0300
committerJakub Kicinski <kuba@kernel.org>2025-10-17 02:59:25 +0300
commit94a164598d833aaee98a81b2910ac7bfea09e60f (patch)
treeaf7c1b175dbb8375965cd6a41e615b7e82f63c02 /scripts/checkstack.pl
parentd7a4a20abe25bb5a15358c8d20a0ab12b7a52f79 (diff)
downloadlinux-94a164598d833aaee98a81b2910ac7bfea09e60f.tar.xz
net: macb: simplify macb_dma_desc_get_size()
macb_dma_desc_get_size() does a switch on bp->hw_dma_cap and covers all four cases: 0, 64B, PTP, 64B+PTP. It also covers the #ifndef MACB_EXT_DESC separately, making it four codepaths. Instead, notice the descriptor size grows with enabled features and use plain if-statements on 64B and PTP flags. Signed-off-by: Théo Lebrun <theo.lebrun@bootlin.com> Link: https://patch.msgid.link/20251014-macb-cleanup-v1-6-31cd266e22cd@bootlin.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts/checkstack.pl')
0 files changed, 0 insertions, 0 deletions