]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
vmxnet3: remove unused variable
authorNeil Horman <nhorman@tuxdriver.com>
Mon, 13 Jun 2011 05:48:30 +0000 (05:48 +0000)
committerDavid S. Miller <davem@conan.davemloft.net>
Mon, 13 Jun 2011 22:31:09 +0000 (18:31 -0400)
While doing some backporting I noticed that vmxnet3 had a variable that was set
but never used.  Get rid of it, and stop the compiler from griping

Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
CC: "VMware, Inc." <pv-drivers@vmware.com>
CC: "David S. Miller" <davem@davemloft.net>
Signed-off-by: Bhavesh Davda <bhavesh@vmware.com>
Signed-off-by: David S. Miller <davem@conan.davemloft.net>
drivers/net/vmxnet3/vmxnet3_drv.c

index cea1b3c2953a5cb19d60bd10c123f3bcbf20d0f5..33097ec1c514c821d9da1c88da3c965c0508dafe 100644 (file)
@@ -405,10 +405,8 @@ vmxnet3_tq_cleanup(struct vmxnet3_tx_queue *tq,
 
        while (tq->tx_ring.next2comp != tq->tx_ring.next2fill) {
                struct vmxnet3_tx_buf_info *tbi;
-               union Vmxnet3_GenericDesc *gdesc;
 
                tbi = tq->buf_info + tq->tx_ring.next2comp;
-               gdesc = tq->tx_ring.base + tq->tx_ring.next2comp;
 
                vmxnet3_unmap_tx_buf(tbi, adapter->pdev);
                if (tbi->skb) {