]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
sdp: canceled a call to sdp_desroy_work() on send completion with error
authorEldad Zinger <eldadz@mellanox.co.il>
Tue, 18 May 2010 08:48:54 +0000 (11:48 +0300)
committerMukesh Kacker <mukesh.kacker@oracle.com>
Tue, 6 Oct 2015 12:04:57 +0000 (05:04 -0700)
No need to destroy resources after send completion with error.

Signed-off-by: Eldad Zinger <eldadz@mellanox.co.il>
drivers/infiniband/ulp/sdp/sdp_tx.c

index 1f697ccebc1aaba868631ff4f135f8de3de6daf0..1d8d7dc47b48e6987735ef31c5aa5d71eb20dc22 100644 (file)
@@ -218,8 +218,6 @@ static int sdp_handle_send_comp(struct sdp_sock *ssk, struct ib_wc *wc)
                        sdp_dbg_data(sk, "Send completion with error. "
                                "Status %d\n", wc->status);
                        sdp_set_error(sk, -ECONNRESET);
-
-                       queue_work(sdp_wq, &ssk->destroy_work);
                }
        }