diff options
author | Roland Dreier <rolandd@cisco.com> | 2010-08-05 01:25:40 +0400 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2010-08-05 01:25:40 +0400 |
commit | 69d510238300c0888ec17e4a811279fe7760b527 (patch) | |
tree | b84d83a64bdac5b682ef6a43e03e3dab2e97efbe /drivers/infiniband/hw/nes/nes_nic.c | |
parent | ff0380ce3928e162d5b417ac88124d87b34d63a7 (diff) | |
download | linux-69d510238300c0888ec17e4a811279fe7760b527.tar.xz |
RDMA/nes: Get rid of "set but not used" variables
Delete dead code in various places that is shown by gcc 4.6's new
-Wunused-but-set-variable warnings.
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/hw/nes/nes_nic.c')
-rw-r--r-- | drivers/infiniband/hw/nes/nes_nic.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/nes/nes_nic.c b/drivers/infiniband/hw/nes/nes_nic.c index c0c404ee3bc4..1901ec789696 100644 --- a/drivers/infiniband/hw/nes/nes_nic.c +++ b/drivers/infiniband/hw/nes/nes_nic.c @@ -470,7 +470,6 @@ static int nes_netdev_start_xmit(struct sk_buff *skb, struct net_device *netdev) u16 nhoffset; u16 wqes_needed; u16 wqes_available; - u32 old_head; u32 wqe_misc; /* @@ -510,7 +509,6 @@ sq_no_longer_full: if (skb_is_gso(skb)) { nesvnic->segmented_tso_requests++; nesvnic->tso_requests++; - old_head = nesnic->sq_head; /* Basically 4 fragments available per WQE with extended fragments */ wqes_needed = nr_frags >> 2; wqes_needed += (nr_frags&3)?1:0; |