From 2d71d64481b975460fc825db978ce660a6e667fd Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sat, 14 Apr 2012 13:04:11 +0000 Subject: [PATCH] ib_srpt: Remove a superfluous test git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4212 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- srpt/src/ib_srpt.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/srpt/src/ib_srpt.c b/srpt/src/ib_srpt.c index 1f8166c89..d210cc1ad 100644 --- a/srpt/src/ib_srpt.c +++ b/srpt/src/ib_srpt.c @@ -2510,8 +2510,7 @@ static int srpt_cm_req_recv(struct ib_cm_id *cm_id, if (!memcmp(ch2->i_port_id, req->initiator_port_id, 16) && !memcmp(ch2->t_port_id, req->target_port_id, 16) && param->port == ch2->sport->port - && param->listen_id == ch2->sport->sdev->cm_id - && ch2->cm_id) { + && param->listen_id == ch2->sport->sdev->cm_id) { if (!__srpt_close_ch(ch2)) continue;