From c408db2587e162516a9680ac8297505c3d5af65d Mon Sep 17 00:00:00 2001 From: Amir Vadai Date: Mon, 30 Nov 2009 16:14:14 +0200 Subject: [PATCH] sdp: cancel_work_sync on 2.6.22 didn't return a value Since the return value was used for debug message only, gave up this message to make backports easier. Signed-off-by: Amir Vadai --- drivers/infiniband/ulp/sdp/sdp_main.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/infiniband/ulp/sdp/sdp_main.c b/drivers/infiniband/ulp/sdp/sdp_main.c index 61ad1c8898a0..4035cc1dc63b 100644 --- a/drivers/infiniband/ulp/sdp/sdp_main.c +++ b/drivers/infiniband/ulp/sdp/sdp_main.c @@ -978,9 +978,7 @@ static void sdp_destroy_work(struct work_struct *work) /* Can be sure that rx_comp_work won't be queued from here cause * ssk->rx_ring.cq is NULL from here */ - if (cancel_work_sync(&ssk->rx_comp_work)) { - sdp_dbg(sk, "RX completion work was queued during destroy\n"); - } + cancel_work_sync(&ssk->rx_comp_work); memset((void *)&ssk->id, 0, sizeof(*ssk) - offsetof(typeof(*ssk), id)); -- 2.50.1