From 21c4f975c889a8dd4beb77ab02a351d55de3165e Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Thu, 3 May 2012 14:06:17 +0000 Subject: [PATCH] ib_srpt: Remove a superfluous test (merge r4212 from trunk) git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4279 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 84dcab2fc..d9f9915ba 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;