mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-17 02:15:57 +00:00
net: chelsio: remove unused function calc_tx_descs
The inlined helper function calc_tx_descs is not used and is redundant. Remove it. Cleans up clang scan build warning: drivers/net/ethernet/chelsio/cxgb4/sge.c:814:28: warning: unused function 'calc_tx_descs' [-Wunused-function] Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
bf02ba6d36
commit
9b78bbef51
@ -803,20 +803,6 @@ static inline unsigned int calc_tx_flits(const struct sk_buff *skb,
|
||||
return flits;
|
||||
}
|
||||
|
||||
/**
|
||||
* calc_tx_descs - calculate the number of Tx descriptors for a packet
|
||||
* @skb: the packet
|
||||
* @chip_ver: chip version
|
||||
*
|
||||
* Returns the number of Tx descriptors needed for the given Ethernet
|
||||
* packet, including the needed WR and CPL headers.
|
||||
*/
|
||||
static inline unsigned int calc_tx_descs(const struct sk_buff *skb,
|
||||
unsigned int chip_ver)
|
||||
{
|
||||
return flits_to_desc(calc_tx_flits(skb, chip_ver));
|
||||
}
|
||||
|
||||
/**
|
||||
* cxgb4_write_sgl - populate a scatter/gather list for a packet
|
||||
* @skb: the packet
|
||||
|
Loading…
x
Reference in New Issue
Block a user