]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
sdp: Fix compilation error when SDP_DEBUG_DATA is off
authorAmir Vadai <amirv@mellanox.co.il>
Tue, 30 Nov 2010 06:48:33 +0000 (08:48 +0200)
committerMukesh Kacker <mukesh.kacker@oracle.com>
Tue, 6 Oct 2015 12:05:35 +0000 (05:05 -0700)
Signed-off-by: Amir Vadai <amirv@mellanox.co.il>
drivers/infiniband/ulp/sdp/sdp_cma.c

index 5ab4c5cfd541a67c2dfe06f13da12db79c304b33..bc1bf172e84dc6a059cfe8cdf888318b302b5595 100644 (file)
@@ -183,7 +183,9 @@ static int sdp_connect_handler(struct sock *sk, struct rdma_cm_id *id,
                bh_unlock_sock(child);
                up_read(&device_removal_lock);
                sdp_sk(child)->destructed_already = 1;
+#ifdef SDP_SOCK_HISTORY
                sdp_ssk_hist_close(child);
+#endif
                sk_free(child);
                return rc;
        }