net: neterion: vxge: remove set but not used variables 'max_frags' and 'txdl_priv'
authorYueHaibing <yuehaibing@huawei.com>
Wed, 28 Nov 2018 12:24:41 +0000 (20:24 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 28 Nov 2018 19:08:43 +0000 (11:08 -0800)
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 113241321dcd ("Neterion: New driver: Traffic & alarm handler")

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/neterion/vxge/vxge-traffic.c

index f7a0d1d5885e303430e76e85cb9ed9d92787b9a1..59e77e3086bb3d70d19ff210daf45b1a487da522 100644 (file)
@@ -1695,17 +1695,10 @@ exit:
  */
 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);
 }