tree 2f5c8825e820bdae35121573505fc511a0783b66
parent f75b7a5294949cd1b7bc301e3087c7bb78e22520
author Hal Rosenstock <[EMAIL PROTECTED]> Thu, 28 Jul 2005 01:45:30 -0700
committer Linus Torvalds <[EMAIL PROTECTED]> Thu, 28 Jul 2005 06:26:11 -0700

[PATCH] IB: Simplify calling of list_del in MAD

Simplify calling of list_del.

Signed-off-by: Sean Hefty <[EMAIL PROTECTED]>
Signed-off-by: Hal Rosenstock <[EMAIL PROTECTED]>
Cc: Roland Dreier <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>

 drivers/infiniband/core/mad.c |    3 +--
 1 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/infiniband/core/mad.c b/drivers/infiniband/core/mad.c
--- a/drivers/infiniband/core/mad.c
+++ b/drivers/infiniband/core/mad.c
@@ -2188,7 +2188,6 @@ static int retry_send(struct ib_mad_send
 
        if (!ret) {
                mad_send_wr->refcount++;
-               list_del(&mad_send_wr->agent_list);
                list_add_tail(&mad_send_wr->agent_list,
                              &mad_send_wr->mad_agent_priv->send_list);
        }
@@ -2223,10 +2222,10 @@ static void timeout_sends(void *data)
                        break;
                }
 
+               list_del(&mad_send_wr->agent_list);
                if (!retry_send(mad_send_wr))
                        continue;
 
-               list_del(&mad_send_wr->agent_list);
                spin_unlock_irqrestore(&mad_agent_priv->lock, flags);
 
                mad_send_wc.wr_id = mad_send_wr->wr_id;
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to