Skip to content

Commit 402fe7a

Browse files
Jiapeng Chongdavem330
authored andcommitted
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'. Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2409 Reported-by: Abaci Robot <[email protected]> Signed-off-by: Jiapeng Chong <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent a887b59 commit 402fe7a

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

drivers/net/ethernet/mediatek/mtk_ppe.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -397,12 +397,6 @@ int mtk_foe_entry_set_wdma(struct mtk_eth *eth, struct mtk_foe_entry *entry,
397397
return 0;
398398
}
399399

400-
static inline bool mtk_foe_entry_usable(struct mtk_foe_entry *entry)
401-
{
402-
return !(entry->ib1 & MTK_FOE_IB1_STATIC) &&
403-
FIELD_GET(MTK_FOE_IB1_STATE, entry->ib1) != MTK_FOE_STATE_BIND;
404-
}
405-
406400
static bool
407401
mtk_flow_entry_match(struct mtk_eth *eth, struct mtk_flow_entry *entry,
408402
struct mtk_foe_entry *data)

0 commit comments

Comments
 (0)