net: ethernet: mediatek: ppe: Remove the unused function mtk_foe_entry_usable()
Subsystems (4)
PATCH 1/1 net: ethernet: mediatek: ppe: Remove the unused function mtk_foe_entry_usable()
The function mtk_foe_entry_usable() is defined in the mtk_ppe.c file, but not called elsewhere, so delete this unused function.
drivers/net/ethernet/mediatek/mtk_ppe.c:400:20: warning: unused function 'mtk_foe_entry_usable'.
--- drivers/net/ethernet/mediatek/mtk_ppe.c | 6 ------ 1 file changed, 6 deletions(-)
drivers/net/ethernet/mediatek/mtk_ppe.c +0 -6
@@ -397,12 +397,6 @@ int mtk_foe_entry_set_wdma(struct mtk_eth *eth, struct mtk_foe_entry *entry,return 0 ; } -static inline bool mtk_foe_entry_usable (struct mtk_foe_entry *entry) -{ -return !(entry->ib1 &MTK_FOE_IB1_STATIC ) && -FIELD_GET (MTK_FOE_IB1_STATE , entry->ib1) !=MTK_FOE_STATE_BIND ; -} -static bool mtk_flow_entry_match (struct mtk_eth *eth,struct mtk_flow_entry *entry,struct mtk_foe_entry *data)
Signature · 1 line
2.20.1.7.g153144c
This patch was applied to netdev/net.git (master) by David S. Miller <[email protected]>:
Hello:
This patch was applied to netdev/net.git (master)
by David S. Miller <[email protected]>:
Quoted 10 lines · On Mon, 17 Oct 2022 14:49:20 +0800 you wrote:
The function
mtk_foe_entry_usable()is defined in themtk_ppe.cfile, but not called elsewhere, so delete this unused function.
drivers/net/ethernet/mediatek/mtk_ppe.c:400:20: warning: unused function 'mtk_foe_entry_usable'.Reported-by Abaci Robot <[email protected]>Signed-off-by Jiapeng Chong <[email protected]>[...]
Here is the summary with links:
- net: ethernet: mediatek: ppe: Remove the unused function mtk_foe_entry_usable()
https://git.kernel.org/netdev/net/c/402fe7a57287
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html