Received: by 10.213.65.68 with SMTP id h4csp1745001imn; Sun, 8 Apr 2018 10:26:29 -0700 (PDT) X-Google-Smtp-Source: AIpwx48WODmoCOAMX16O/Q4qQVouBqqsmKOZIKDqgQC8New5GwScCyICD6jVOBUl8kNZTCa4jI73 X-Received: by 10.99.100.132 with SMTP id y126mr22582402pgb.77.1523208389224; Sun, 08 Apr 2018 10:26:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523208389; cv=none; d=google.com; s=arc-20160816; b=cAEzOwrK/4y1j47O55X3HbG3l9B728ldO3rkl4H66tJQqs3TrmnWiHMGD/1HvtsPIO eYGRbhypgM4Do8v4zX87Ka8WW5tnKTdXdwy4nbcewLa0PETp/dYQR2wxSydRVtx5R2tH kay5/l9Xi8andsUn/1ZQaybeGu73nDqIxgRjfqReR6EAhW1UajeKVV6yVATFqzrqqUKi vmq+UYG5enCqoD1OvPGKGda7++iZMDjpdbp3hnQllfYQYiXgA4jR4KzuAN2RuR6SyXa2 2zAJS8vhUBirAevKn5WXz13zs+JJ+k7iG4tM64dS8JhLewHk1Pw8Go4CNByx9mdtX6lc i+PQ== 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=C7N2kni7RI5agL/0Mmy8E6iysm1HEQlYog301cpHxPo=; b=IpURAFLE0LFrBGOoB4ZLEuX6GHy45ocb6exXv1ol5jeqL8AYbwISkvxEcv+uKYH01o Px/YPNwzxvaFfAPnXNTsF1SO+PTcO5Urz2sXvbX7qktiKU+iJNEvHpmoxT8NSSJUv8P3 Qv588yZU6PeZ5XAaxHrClGtKHNUOUamdezfFwhli6Je7gjdACduqQu2mKmnx5iFLNP69 Om46M4nRaDHaS6NFE7ctxF/Gm8bp9g8KS2sF/s3Z/vvjydVfpxl/Xmo0mjDPi8HRL4Fi /Vk3xOPc2RsWv7mQfqjZlNWXSyDhZHHSv9APUjBImVIdUnLK/PucaxKv6yHU7cA36CMY b2cw== 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 7-v6si12573883pll.132.2018.04.08.10.25.52; Sun, 08 Apr 2018 10:26:29 -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 S1752544AbeDHQmF (ORCPT + 99 others); Sun, 8 Apr 2018 12:42:05 -0400 Received: from shards.monkeyblade.net ([184.105.139.130]:51768 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751845AbeDHQmD (ORCPT ); Sun, 8 Apr 2018 12:42:03 -0400 Received: from localhost (pool-173-77-163-229.nycmny.fios.verizon.net [173.77.163.229]) (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 25C4E13ED9C4C; Sun, 8 Apr 2018 09:42:02 -0700 (PDT) Date: Sun, 08 Apr 2018 12:42:00 -0400 (EDT) Message-Id: <20180408.124200.2204489876311923873.davem@davemloft.net> To: Vadim.Lomovtsev@caviumnetworks.com Cc: sgoutham@cavium.com, sunil.kovvuri@gmail.com, rric@kernel.org, linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, dnelson@redhat.com, robin.murphy@arm.com, hch@infradead.org, gustavo@embeddedor.com, Vadim.Lomovtsev@cavium.com Subject: Re: [PATCH v4] net: thunderx: rework mac addresses list to u64 array From: David Miller In-Reply-To: <20180406195354.16037-1-Vadim.Lomovtsev@caviumnetworks.com> References: <20180406140443.15181-1-Vadim.Lomovtsev@caviumnetworks.com> <20180406195354.16037-1-Vadim.Lomovtsev@caviumnetworks.com> X-Mailer: Mew version 6.7 on Emacs 25.3 / 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, 08 Apr 2018 09:42:03 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Vadim Lomovtsev Date: Fri, 6 Apr 2018 12:53:54 -0700 > @@ -1929,7 +1929,7 @@ static void nicvf_set_rx_mode_task(struct work_struct *work_arg) > work.work); > struct nicvf *nic = container_of(vf_work, struct nicvf, rx_mode_work); > union nic_mbx mbx = {}; > - struct xcast_addr *xaddr, *next; > + int idx = 0; No need to initialize idx. > + for (idx = 0; idx < vf_work->mc->count; idx++) { As it is always explicitly initialized at, and only used inside of, this loop.