diff options
author | YueHaibing <yuehaibing@huawei.com> | 2020-05-05 11:31:56 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-05-05 22:07:42 +0300 |
commit | e94caac1bc0b628b14dd6d81a94315cd880d6150 (patch) | |
tree | 98c6efefefc1698a18d6f0f53299036b2c4ee0ff /drivers/net/ethernet/tehuti/tehuti.c | |
parent | 015cba7e369e91656ed31afbadce044a10fa0fab (diff) | |
download | linux-e94caac1bc0b628b14dd6d81a94315cd880d6150.tar.xz |
net: tehuti: remove unused inline function bdx_tx_db_size
There's no callers in-tree anymore.
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/tehuti/tehuti.c')
-rw-r--r-- | drivers/net/ethernet/tehuti/tehuti.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/net/ethernet/tehuti/tehuti.c b/drivers/net/ethernet/tehuti/tehuti.c index 40a2ce0ca808..e28727297563 100644 --- a/drivers/net/ethernet/tehuti/tehuti.c +++ b/drivers/net/ethernet/tehuti/tehuti.c @@ -1362,18 +1362,6 @@ static void print_rxfd(struct rxf_desc *rxfd) * As our benchmarks shows, it adds 1.5 Gbit/sec to NIS's throuput. */ -/************************************************************************* - * Tx DB * - *************************************************************************/ -static inline int bdx_tx_db_size(struct txdb *db) -{ - int taken = db->wptr - db->rptr; - if (taken < 0) - taken = db->size + 1 + taken; /* (size + 1) equals memsz */ - - return db->size - taken; -} - /** * __bdx_tx_db_ptr_next - helper function, increment read/write pointer + wrap * @db: tx data base |