From 6b38638e71587ac88222b2d843d876101681eebc Mon Sep 17 00:00:00 2001 From: Yan Burman Date: Mon, 13 Oct 2014 12:33:30 +0000 Subject: [PATCH] isert: Remove unneeded if in the fast path Signed-off-by: Yan Burman git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/iser@5842 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- iscsi-scst/kernel/isert-scst/iser_pdu.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/iscsi-scst/kernel/isert-scst/iser_pdu.c b/iscsi-scst/kernel/isert-scst/iser_pdu.c index eeecc2f2e..ef4c60e28 100644 --- a/iscsi-scst/kernel/isert-scst/iser_pdu.c +++ b/iscsi-scst/kernel/isert-scst/iser_pdu.c @@ -458,9 +458,6 @@ int isert_rx_pdu_done(struct isert_cmnd *pdu) if (++isert_conn->to_post_recv > isert_conn->repost_threshold) { err = isert_post_recv(isert_conn, isert_conn->post_recv_first, isert_conn->to_post_recv); - if (unlikely(err)) - pr_err("Failed to post recv err:%d\n", err); - isert_conn->to_post_recv = 0; } spin_unlock(&isert_conn->post_recv_lock);