Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1260851imm; Sun, 2 Sep 2018 16:14:44 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZhew9K6cFR/aIPw8s/9olnOio3X9PuWte8DM4IqAOfGRJpmXT4YWqueHtq+x67AXVdhB/F X-Received: by 2002:a63:1c61:: with SMTP id c33-v6mr10694006pgm.109.1535930084321; Sun, 02 Sep 2018 16:14:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535930084; cv=none; d=google.com; s=arc-20160816; b=tAo7cLnjm6ffBfiv6dshTB5feGK2HqUFoDXYuq7sjvhMK7hk1mYLc7c1aVUXEPKCnL ypVILlvME+NveRJO7yEzkeH/42okwHDL0ORzvXWClXeOyxPVgcEKV3ffLPTJkl3iR8lk BmitZ2wlSY8aqZCezLleTNT8XsbAJ0KBDGrn/Bgh1F5kzNHwd70DDkG4rnF+6Bc33itr +zD3LX4AsYEAfnuZ52mQnE2s8RAWYm1NjrejSiAYUW8PDVowy2gbWRfTEgVm9BBsBrhX ysfb7NMVOWadCqKyd0sCRP/gYHF4CEHC87Ay7NKV8gO7oClbGXqwDJDinC9tfsaPTG2d OMWQ== 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:from:subject:cc:to:message-id:date :arc-authentication-results; bh=dhEb7EOxaOI/9EZucmkn/rlpftbBGBJ+tzvuSTOjYd8=; b=OncALJaRhiYHDOPjFIHDQHw9P3GNMy79rd/ReP0rqta7I1hIJ3pppT5vx4a/9NyG5a iNqpUvOfRtMaAA2QxD9HiwYJiBPKQRRwHQVG+9WFdZWFndsL3tC2rhoBLy1i3mJgHock t1vfTsFmbSWku0kFQi4D+uGxYHGRIu0o6OuzAXy8T0xZMZeTs1yc9OA90YUd1o8+L/NE UNtLkZVoCqs/eUybgjsMapnlGvWUxDe6uuK17vZInH7xnNqH8Aemlnof/Sp58tzNIWSl gtB/woIoh90hodJMLozYazO0La3DvufAd49LZ2FOTcNpE8/VYXPnaOsWugo85bYRCh7W xG1g== 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 j185-v6si16324715pgc.419.2018.09.02.16.14.27; Sun, 02 Sep 2018 16:14:44 -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 S1727255AbeICDam (ORCPT + 99 others); Sun, 2 Sep 2018 23:30:42 -0400 Received: from shards.monkeyblade.net ([23.128.96.9]:35834 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726763AbeICDam (ORCPT ); Sun, 2 Sep 2018 23:30:42 -0400 Received: from localhost (168-64-212-66.spl.org [66.212.64.168]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id EC0121262C4F6; Sun, 2 Sep 2018 16:13:16 -0700 (PDT) Date: Sun, 02 Sep 2018 16:13:16 -0700 (PDT) Message-Id: <20180902.161316.1787939948176707232.davem@davemloft.net> To: laoar.shao@gmail.com Cc: edumazet@google.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next] tcp: remove useless add operation when init sysctl_max_tw_buckets From: David Miller In-Reply-To: <1535804465-11795-2-git-send-email-laoar.shao@gmail.com> References: <1535804465-11795-1-git-send-email-laoar.shao@gmail.com> <1535804465-11795-2-git-send-email-laoar.shao@gmail.com> X-Mailer: Mew version 6.7 on Emacs 26 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Sun, 02 Sep 2018 16:13:17 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Yafang Shao Date: Sat, 1 Sep 2018 20:21:05 +0800 > cp_hashinfo.ehash_mask is always an odd number, which is set in function > alloc_large_system_hash(). See bellow, > if (_hash_mask) > *_hash_mask = (1 << log2qty) - 1; <<< always odd number > > Hence the local variable 'cnt' is a even number, as a result of that it is > no difference to do the incrementation here. > > Signed-off-by: Yafang Shao Applied.