Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp787794imm; Fri, 31 Aug 2018 13:18:18 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbuXYcvfYXDx3VQh77xw7xAhM6oLGtCfdh74DgaWecmVHt8c++ciKU6ZYrqJ7qPrjzZE5o/ X-Received: by 2002:a63:a919:: with SMTP id u25-v6mr16174401pge.211.1535746698072; Fri, 31 Aug 2018 13:18:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535746698; cv=none; d=google.com; s=arc-20160816; b=xI0vBP7bNR/8v8cYeXtreZ/XH6//woCXF7p3oJJMV4AMbTPe3BqYOHIqx1egFiUlMI RUEmaaq2hwWdiBQh7JetWFdJkuZOPkqwcFm52coVQoOLKud0M1Scy3jXX24JC0XydQkG NDGgpaSstDW1CwoEPPpZToEWo+JuxKM++hnd97O7Wqg77XDlgZeQdP1Dt8wz+c2AveiW 3OCBym+TLCsTTWPAVBy4GPBXW7LiOL+bj7VVpavySsltXIHXpH+uQOrOmZ2TqcGdTCGb K3X7H8Gt84mRUNnK0HCejOqfO1DJHIj6SLqYux8TlXtHq1euTCwX/L19gEarnOqmW3+c W0nw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=ptqFnecF06zJ9iUyMB1LOtz/ekDCfziX44fElmoudaE=; b=U0uiBZaMutWA9rnxWsV3JM1IelN3DUsATTQMkL1lOswBd1aTbNhn3Kv6dMEwN9JqWJ ipRzYe7bCvRmjD7wLIGF6i9m1Z+j/BP/ZOehc4Ta8A1LalJfk2lX3m631eTDYHF5wMl4 UQeVMMqcqGTfQ2Mo0BnEZPEbRv1pxCLC2dfveJg4Ipeg88xlWIKEC0eoeu2FmU5FQ1T5 rx9hq85y7VNZWlnCcCSyQ6thK+annZDhpVi4g5mIMbhdrWfsWIrUaftKJC9a+K4LXRTq odlXNDNMpJrFHu+hySAwJE7AybzQpRVIbNSYbPO+npQOnkQhw3mTvvi4wi6KXoWG5xV6 kXMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=uxfEgYwk; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 9-v6si9640115pgq.229.2018.08.31.13.18.02; Fri, 31 Aug 2018 13:18:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=uxfEgYwk; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727625AbeIAA0B (ORCPT + 99 others); Fri, 31 Aug 2018 20:26:01 -0400 Received: from mail-lf1-f65.google.com ([209.85.167.65]:33513 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727249AbeIAA0A (ORCPT ); Fri, 31 Aug 2018 20:26:00 -0400 Received: by mail-lf1-f65.google.com with SMTP id m26-v6so10923098lfb.0; Fri, 31 Aug 2018 13:16:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=ptqFnecF06zJ9iUyMB1LOtz/ekDCfziX44fElmoudaE=; b=uxfEgYwk6tfMQlXAe/jQXUZ+G9wO2llBsX/IS2EoLC4yrl6lo0KxDXuHTnY7Ggjuh1 W5vQiq1qteW/HPT9+Yy9apgvDGfLz5Tt1A9kbWj6KRPSR5abRqVijOIkVxcc4puHdyb2 10N2Luzo/6IVsMLGWlhLpcDfwgOPjXxHwBwjuOv5RisDmvKb8J5CSooiVMhMWFtnxdj7 UJwFi2z2ngjNwFpu5DcevqmBTxjuUpm/DqFnidmlktF+tEZt90uUTBnu1Zm/xLAAosy+ 9qErWrJdQF+8waZ1BGulda09vOTShh0iXSNQ3wwgWxn6+8Le1uDpmbRdSiUjsuuslSey KpDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=ptqFnecF06zJ9iUyMB1LOtz/ekDCfziX44fElmoudaE=; b=qYbfjcbVE8m1Chjkt0G/iuDPz+62MAod+JxtJwI8EzPhdtV/VP4nbegAKISOg2IeW5 kHKJPPtFJjyxEvI/a17jAos222wCsLk0mLTYLKHRHY4Hd9KiF+9zWb7IMMETT4Kd3nzW JuQ6rzDu7sPyV/55FuNhkJCY0mVOeZ5JA2QEXS1+jU+fxiZopJ2Csl6SJNXmjJjH4udp LfOJoCin7dY+a0PJECkPCls+OiFY2pB5p2VDlkuiid9baLpjSZasVTtqiTxLcDzXj8Q/ w6tCCz69DeeLf25tEpyeDAsQyPquVaouTVHlKJZAmEhObf5m5dMcuqK25y6toBQwEDXJ heKA== X-Gm-Message-State: APzg51DpbNaWbU5DzMp183ZMWvXKYGW+8qv9YDS856w21j8Rnu4YRHBQ tue1MJdJcUmzuWA+aDttDz4= X-Received: by 2002:a19:1a52:: with SMTP id a79-v6mr244810lfa.139.1535746614066; Fri, 31 Aug 2018 13:16:54 -0700 (PDT) Received: from Mort.jumbo.freeair (91-159-62-202.elisa-laajakaista.fi. [91.159.62.202]) by smtp.gmail.com with ESMTPSA id m31-v6sm2060755lfi.17.2018.08.31.13.16.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 31 Aug 2018 13:16:53 -0700 (PDT) From: Igor Stoppa X-Google-Original-From: Igor Stoppa To: Bart Van Assche Cc: igor.stoppa@gmail.com, Igor Stoppa , linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] infiniband: scsi: remove unnecessary unlikely() Date: Fri, 31 Aug 2018 23:16:45 +0300 Message-Id: <20180831201645.15611-1-igor.stoppa@huawei.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org WARN_ON() already contains an unlikely(), so it's not necessary to wrap it into another. Signed-off-by: Igor Stoppa Reviewed-by: Bart Van Assche Cc: linux-rdma@vger.kernel.org (open list:SCSI RDMA PROTOCOL (SRP) TARGET) Cc: linux-kernel@vger.kernel.org (open list) --- drivers/infiniband/ulp/srpt/ib_srpt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/infiniband/ulp/srpt/ib_srpt.c b/drivers/infiniband/ulp/srpt/ib_srpt.c index f37cbad022a2..447d21ea479a 100644 --- a/drivers/infiniband/ulp/srpt/ib_srpt.c +++ b/drivers/infiniband/ulp/srpt/ib_srpt.c @@ -2708,7 +2708,7 @@ static void srpt_queue_response(struct se_cmd *cmd) break; } - if (unlikely(WARN_ON_ONCE(state == SRPT_STATE_CMD_RSP_SENT))) + if (WARN_ON_ONCE(state == SRPT_STATE_CMD_RSP_SENT)) return; /* For read commands, transfer the data to the initiator. */ -- 2.17.1