projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
183ae74
)
RDMA/nes: Remove unneeded variable
author
Dan Carpenter
<error27@gmail.com>
Wed, 15 Sep 2010 16:32:39 +0000
(18:32 +0200)
committer
Roland Dreier
<rolandd@cisco.com>
Wed, 29 Sep 2010 03:50:07 +0000
(20:50 -0700)
Just a small cleanup. The "passive_state" variable isn't used any
more after commit
dae58728dc
("RDMA/nes: Fix double CLOSE event
indication crash")
Signed-off-by: Dan Carpenter <error27@gmail.com>
Acked-by: Faisal Latif <faisal.latif@intel.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/nes/nes_cm.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/hw/nes/nes_cm.c
b/drivers/infiniband/hw/nes/nes_cm.c
index 61e0efd4ccfb5d9d4d6f6bdc50f765d365c07d0e..5c8d34cb6a23f1a4605bd4cb90464543cde043bc 100644
(file)
--- a/
drivers/infiniband/hw/nes/nes_cm.c
+++ b/
drivers/infiniband/hw/nes/nes_cm.c
@@
-1424,7
+1424,6
@@
static void handle_rst_pkt(struct nes_cm_node *cm_node, struct sk_buff *skb,
{
int reset = 0; /* whether to send reset in case of err.. */
- int passive_state;
atomic_inc(&cm_resets_recvd);
nes_debug(NES_DBG_CM, "Received Reset, cm_node = %p, state = %u."
" refcnt=%d\n", cm_node, cm_node->state,
@@
-1439,7
+1438,7
@@
static void handle_rst_pkt(struct nes_cm_node *cm_node, struct sk_buff *skb,
active_open_err(cm_node, skb, reset);
break;
case NES_CM_STATE_MPAREQ_RCVD:
-
passive_state = atomic_add_return(1,
&cm_node->passive_state);
+
atomic_inc(
&cm_node->passive_state);
dev_kfree_skb_any(skb);
break;
case NES_CM_STATE_ESTABLISHED: