Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2568207ybl; Thu, 29 Aug 2019 09:53:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqyByuCh3lbq2Q1HRN/PY9HikrB17XO3MAC1zG7BjuD5I+ChL/d4HcS+xMBg3ndM/vt/XVAQ X-Received: by 2002:a62:3681:: with SMTP id d123mr12633218pfa.147.1567097596076; Thu, 29 Aug 2019 09:53:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567097596; cv=none; d=google.com; s=arc-20160816; b=zGoke4BHr5cbXwBFUDG1UgUKaIxqSgRNLx8v2281MgDRZYiF4loaSjIw6DPWw4s54B tMVguBON4OukrwnzUUpDx08UWv6SkbKPKAojomI9789ZrLR1BPSEtfisw/tfrRbrIup5 wP28ARgZQXfXVPaN5LWFZn9BoZ3xk5zpi5NrF6JzkcYysI9VqKufhadoQl16We3LpbXP zaGwpTmlry91FA3ER6rAtq3uYb5W6Cc/xdz1a/2VsvUy8Q5vB0U1HoSRUP/4jS5rcZrR OmjaYbuO6kz9Ltjs5O+jvU0NPmVccJkXTG1HjZ6f+vqnDiHmNyeiFKkLBN30iMyZzZFm WkYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=ROs74LHAAGb3AWiHq6/1CR6l2I0sb4RXNCxoGizOtu0=; b=X7JVuNdywjCPg6F7mteRP4X9DvXMwbte2LnEFodNMssybG/BGLpgcxkG6xGojeIzUr y+8NUA61uG2XomBgZz4oXZKFCOZW2b2fUwUVnPhO1lvhZxR1Hy1SKpu/3Auc9OukNwVx y75oa7mrDE8xP5TgJgz+MsYAjZYtFv0qnCyB00nBWuzsRRHSAKLdIn0/W86GQUg+Zbm7 4cuuc8HFVEqVdIeei6+Mz3uYlNxL7eiFJ+RLUYorWI6dP46SMxRBBKysnwF89jPgpohT HUCFKgBnZVnl9tYwRVWe2Mq6cBb04rNYbCGxzhtKvY6rlCG5wR2sbm98HymJaSWDgPFq yINw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x6si509537plo.29.2019.08.29.09.53.01; Thu, 29 Aug 2019 09:53:16 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728164AbfH2Qvh (ORCPT + 99 others); Thu, 29 Aug 2019 12:51:37 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:35748 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728145AbfH2Qvf (ORCPT ); Thu, 29 Aug 2019 12:51:35 -0400 Received: by mail-wm1-f67.google.com with SMTP id l2so4564453wmg.0; Thu, 29 Aug 2019 09:51:34 -0700 (PDT) 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=ROs74LHAAGb3AWiHq6/1CR6l2I0sb4RXNCxoGizOtu0=; b=OQexBvmKcQJh1mOOo/yLi69MnMVqYp237omrwKSC7XANirKosrG6sajmraWbdTzanI h5tzP2KiP8XycP+46XMar0s9fIh7q35oBu6XHl0HS2Pr0BIhLio+QubhORwe/aESbsr8 CRaZGMGWttIfTQicr4A/MKs0gIrJhihtF+xC8B8QeV+IzpnXRtq67qNQUe8iDHijok9R FNsAWXxcFi/19sQtw4Q+5oPBKNZQ+oXnUd8vAzZ6m/PxrDj3eH2D0soCPOkQDnxPumhp vurlIaqQfvtdzAsjiFI/H5IEn0SKTdxjur3Fo6BbKgwE3dd67fwtZWrNko5sBDCXHYCK /aVQ== X-Gm-Message-State: APjAAAW32ylzlNVaCzBlEvquoWbNunihiv7cTjvFCWgNqFJKVebwrN0S FF4tLBwnHXj/e93rs9MRcAMJwqaaq5A= X-Received: by 2002:a1c:6a0f:: with SMTP id f15mr523220wmc.147.1567097493996; Thu, 29 Aug 2019 09:51:33 -0700 (PDT) Received: from green.intra.ispras.ru (bran.ispras.ru. [83.149.199.196]) by smtp.googlemail.com with ESMTPSA id o14sm8340770wrg.64.2019.08.29.09.51.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Aug 2019 09:51:33 -0700 (PDT) From: Denis Efremov To: linux-kernel@vger.kernel.org Cc: Denis Efremov , Mike Marciniszyn , Dennis Dalessandro , Joe Perches , Andrew Morton , linux-rdma@vger.kernel.org Subject: [PATCH v3 08/11] IB/hfi1: Remove unlikely() from IS_ERR*() condition Date: Thu, 29 Aug 2019 19:50:22 +0300 Message-Id: <20190829165025.15750-8-efremov@linux.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190829165025.15750-1-efremov@linux.com> References: <20190829165025.15750-1-efremov@linux.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org "unlikely(IS_ERR_OR_NULL(x))" is excessive. IS_ERR_OR_NULL() already uses unlikely() internally. Signed-off-by: Denis Efremov Cc: Mike Marciniszyn Cc: Dennis Dalessandro Cc: Joe Perches Cc: Andrew Morton Cc: linux-rdma@vger.kernel.org --- drivers/infiniband/hw/hfi1/verbs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/infiniband/hw/hfi1/verbs.c b/drivers/infiniband/hw/hfi1/verbs.c index 646f61545ed6..1c52b19dd0f8 100644 --- a/drivers/infiniband/hw/hfi1/verbs.c +++ b/drivers/infiniband/hw/hfi1/verbs.c @@ -1040,7 +1040,7 @@ int hfi1_verbs_send_pio(struct rvt_qp *qp, struct hfi1_pkt_state *ps, if (cb) iowait_pio_inc(&priv->s_iowait); pbuf = sc_buffer_alloc(sc, plen, cb, qp); - if (unlikely(IS_ERR_OR_NULL(pbuf))) { + if (IS_ERR_OR_NULL(pbuf)) { if (cb) verbs_pio_complete(qp, 0); if (IS_ERR(pbuf)) { -- 2.21.0