]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
sdp: cancel_work_sync on 2.6.22 didn't return a value
authorAmir Vadai <amirv@mellanox.co.il>
Mon, 30 Nov 2009 14:14:14 +0000 (16:14 +0200)
committerMukesh Kacker <mukesh.kacker@oracle.com>
Tue, 6 Oct 2015 12:04:42 +0000 (05:04 -0700)
Since the return value was used for debug message only,
gave up this message to make backports easier.

Signed-off-by: Amir Vadai <amirv@mellanox.co.il>
drivers/infiniband/ulp/sdp/sdp_main.c

index 61ad1c8898a05a56b4c8c88d27187d14a1fedda5..4035cc1dc63ba56c8cb1ca979daa6d6316b0dfc0 100644 (file)
@@ -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));