Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2570117ybl; Thu, 29 Aug 2019 09:54:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqzCEvDy4fv3FzV2fo/PZxXnRMzDlbAaUr6HoJBFavneoJkYMq3mUoA1whE5QatZyVFhCJZJ X-Received: by 2002:a17:90a:80ca:: with SMTP id k10mr11179901pjw.59.1567097694783; Thu, 29 Aug 2019 09:54:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567097694; cv=none; d=google.com; s=arc-20160816; b=kIJOmxliQdKnhT/MtlZN/WiJKj39Y9Mzw558iQb1UruSXaEWNGb6z20PVusIX+Vj+W Edjns/2i9pORcs01tk7ilzxey3fjpeBFbfcv4eKariBEssUsU4UqgMUhZkocj5tVeZuO toWjYlNSdEBusKZGDC49bZA7QMfMAINRHqZv4CFNtsZCdPQyoFAWpgX3Zh9SKO0LDQsC C1cib756NFTmnzT6HPxCX+IiHfGONW3/KvF9+RO6/vV11Wht9+cINGeSIQ+Tvg9VE+P6 WwE7B93eYhauv0tjQKX8GvD+MvBr3/wAkNfGVDRmWbp2cGosMnphPF53C0kFnnujNUci 3TVg== 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=R7bQjRL07IuVsHCtVeRWC7Ozbw5wqGaVAOPZV3WXpeY=; b=iv+RwI4TVRp4XXGOJMG4L/zcobMXPG2yF3eZyLjwkfYAdqq9v1Keoj7PgETu1GOBaa J9m2v/BAoRBV/65bRRnXPbr3IO3BFWs4QAToxve66vhNOs2GxrIBxO2XvsBqRI9zxq4z pY9n2nEcH+qdZdJ2RlYc0NwnzsKG3VHDPbL2jR9DM5GGK7EoDv/AZuneULA+/nLi6oaE jOXufe/M23bI2tW6pZurLoiOMDwrUb5Hveg0b6b1Hc/VTmpPk7oXsTequg/rUqcRA80Q z13GNy3S9WRxrqy2RFOPazIw8MkzGkXDZlhG29kucpfyzDReCp6SSRgevE6CulV38CDl NZYQ== 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 y7si2364105pgj.486.2019.08.29.09.54.38; Thu, 29 Aug 2019 09:54:54 -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 S1728256AbfH2Qvt (ORCPT + 99 others); Thu, 29 Aug 2019 12:51:49 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:54951 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727415AbfH2Qvp (ORCPT ); Thu, 29 Aug 2019 12:51:45 -0400 Received: by mail-wm1-f66.google.com with SMTP id k2so3019151wmj.4; Thu, 29 Aug 2019 09:51:44 -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=R7bQjRL07IuVsHCtVeRWC7Ozbw5wqGaVAOPZV3WXpeY=; b=H26Dsc71O5Ve/OWoye0L/8NyxvJKumkUvMSCymGEha1PnFP69RgehYppLxtnbD1SIp iBPQQuH6PCj9Ja6MPhcl1Dyh8uc0qjtsK3kODhfggfgnpb6y6XqgynkmJbHmUtbg+k/t t8E2rZQVDYA6bC9021rP3kJutev+J71c7y364GXcP3kaFXc35pXVpJQqXjKD1JnUO/nG JflEJmGqWLPLKHAGH0WAH5QHMt/MyvRXQTuo1/thFpAADSMPz4mtp3UVyNkZpR/Vl1JE riMhLrdzaqACHtLejND/H5FejP9e+/eq/SYZMD39FpgPPjDjPEOctKIf1AMNGZxee9Tf JU/w== X-Gm-Message-State: APjAAAUWLl3yyAcPOsrXeoBkrGs1XBr2aq1in37ARZtVC8V6mMXKg0Fw YIzGhXvTgpMhlLV5RFg8/rgmbsRlApA= X-Received: by 2002:a1c:7a14:: with SMTP id v20mr13537744wmc.75.1567097503479; Thu, 29 Aug 2019 09:51:43 -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.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Aug 2019 09:51:43 -0700 (PDT) From: Denis Efremov To: linux-kernel@vger.kernel.org Cc: Denis Efremov , "David S. Miller" , Joe Perches , Andrew Morton , netdev@vger.kernel.org Subject: [PATCH v3 10/11] udp: Remove unlikely() from IS_ERR*() condition Date: Thu, 29 Aug 2019 19:50:24 +0300 Message-Id: <20190829165025.15750-10-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: "David S. Miller" Cc: Joe Perches Cc: Andrew Morton Cc: netdev@vger.kernel.org --- include/net/udp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/net/udp.h b/include/net/udp.h index 79d141d2103b..bad74f780831 100644 --- a/include/net/udp.h +++ b/include/net/udp.h @@ -480,7 +480,7 @@ static inline struct sk_buff *udp_rcv_segment(struct sock *sk, * CB fragment */ segs = __skb_gso_segment(skb, features, false); - if (unlikely(IS_ERR_OR_NULL(segs))) { + if (IS_ERR_OR_NULL(segs)) { int segs_nr = skb_shinfo(skb)->gso_segs; atomic_add(segs_nr, &sk->sk_drops); -- 2.21.0