Skip to content

Commit

Permalink
net: neterion: vxge: remove set but not used variables 'max_frags' an…
Browse files Browse the repository at this point in the history
…d 'txdl_priv'

Fixes gcc '-Wunused-but-set-variable' warning:

drivers/net/ethernet/neterion/vxge/vxge-traffic.c:1698:35:
 warning: variable 'txdl_priv' set but not used [-Wunused-but-set-variable]
drivers/net/ethernet/neterion/vxge/vxge-traffic.c:1699:6:
 warning: variable 'max_frags' set but not used [-Wunused-but-set-variable]

It never used since introduction in
commit 1132413 ("Neterion: New driver: Traffic & alarm handler")

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
YueHaibing authored and David S. Miller committed Nov 28, 2018
1 parent 5827541 commit 9cc549e
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions drivers/net/ethernet/neterion/vxge/vxge-traffic.c
Original file line number Diff line number Diff line change
@@ -1695,17 +1695,10 @@ enum vxge_hw_status vxge_hw_fifo_handle_tcode(struct __vxge_hw_fifo *fifo,
*/
void vxge_hw_fifo_txdl_free(struct __vxge_hw_fifo *fifo, void *txdlh)
{
struct __vxge_hw_fifo_txdl_priv *txdl_priv;
u32 max_frags;
struct __vxge_hw_channel *channel;

channel = &fifo->channel;

txdl_priv = __vxge_hw_fifo_txdl_priv(fifo,
(struct vxge_hw_fifo_txd *)txdlh);

max_frags = fifo->config->max_frags;

vxge_hw_channel_dtr_free(channel, txdlh);
}

0 comments on commit 9cc549e

Please sign in to comment.