Commit 9cc549e4 authored by YueHaibing's avatar YueHaibing Committed by David S. Miller

net: neterion: vxge: remove set but not used variables 'max_frags' and '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 11324132 ("Neterion: New driver: Traffic & alarm handler")
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 58275410
...@@ -1695,17 +1695,10 @@ enum vxge_hw_status vxge_hw_fifo_handle_tcode(struct __vxge_hw_fifo *fifo, ...@@ -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) 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; struct __vxge_hw_channel *channel;
channel = &fifo->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); vxge_hw_channel_dtr_free(channel, txdlh);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment