From bdc209d520123ff985ef659964f5c2bbe25bdade Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Thu, 2 Jun 2011 19:13:06 +0000 Subject: [PATCH] ib_srpt: Removed a superfluous if-statement. This is a micro-optimization. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3521 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- srpt/src/ib_srpt.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/srpt/src/ib_srpt.c b/srpt/src/ib_srpt.c index 4416175fd..e7b978ea0 100644 --- a/srpt/src/ib_srpt.c +++ b/srpt/src/ib_srpt.c @@ -1716,9 +1716,6 @@ static void srpt_handle_new_iu(struct srpt_rdma_ch *ch, goto out; } - if (unlikely(ch_state != CH_LIVE)) - goto post_recv; - if (srp_cmd->opcode == SRP_CMD || srp_cmd->opcode == SRP_TSK_MGMT) { if (!send_ioctx) send_ioctx = srpt_get_send_ioctx(ch);