aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/nes/nes_nic.c
diff options
context:
space:
mode:
authorRoland Dreier <rolandd@cisco.com>2010-08-04 17:25:40 -0400
committerRoland Dreier <rolandd@cisco.com>2010-08-04 17:25:40 -0400
commit69d510238300c0888ec17e4a811279fe7760b527 (patch)
treeb84d83a64bdac5b682ef6a43e03e3dab2e97efbe /drivers/infiniband/hw/nes/nes_nic.c
parentff0380ce3928e162d5b417ac88124d87b34d63a7 (diff)
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.c2
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)
470 u16 nhoffset; 470 u16 nhoffset;
471 u16 wqes_needed; 471 u16 wqes_needed;
472 u16 wqes_available; 472 u16 wqes_available;
473 u32 old_head;
474 u32 wqe_misc; 473 u32 wqe_misc;
475 474
476 /* 475 /*
@@ -510,7 +509,6 @@ sq_no_longer_full:
510 if (skb_is_gso(skb)) { 509 if (skb_is_gso(skb)) {
511 nesvnic->segmented_tso_requests++; 510 nesvnic->segmented_tso_requests++;
512 nesvnic->tso_requests++; 511 nesvnic->tso_requests++;
513 old_head = nesnic->sq_head;
514 /* Basically 4 fragments available per WQE with extended fragments */ 512 /* Basically 4 fragments available per WQE with extended fragments */
515 wqes_needed = nr_frags >> 2; 513 wqes_needed = nr_frags >> 2;
516 wqes_needed += (nr_frags&3)?1:0; 514 wqes_needed += (nr_frags&3)?1:0;