Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1267571pxk; Sat, 12 Sep 2020 18:24:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw6abnrRTwezILOXM/BpIwIivpOCh0ZecLlh4yyPo15ZZoF77D2d3x4kEUrDsBStCGgnEJX X-Received: by 2002:a17:906:2b97:: with SMTP id m23mr8297941ejg.61.1599960270885; Sat, 12 Sep 2020 18:24:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599960270; cv=none; d=google.com; s=arc-20160816; b=CxohsWjrph73u/7D1zHtrifomVYUTpDaZV1ntnuxkDpAKfavifup0yEYW2bnDsIJk0 vkVhf2tbss5MPAvCTSRaltQy3multrrp8u7Vle/37ZbyAjXe7fhCfNLO9xvoj7ConBut bYSNYq6Mvku5/YyNFJlFCNZXZ7RMbQMszBDsoMdpyPIIGM2JsMpKJKDKr0Mj8Tc/QGwk LsIGXs1CP9XNCuY2X49MAB5Y1P1jMZ4OEp9KFgLdGe5MzmmlYttbEGa6YbIX4LTG7IYp u1byOo+InPRzZEy3AX9ZDr22YCUAw+9X3Lv154CY5hej+Dx1vTYZtg9mEXL6SvCWLTcY gR+w== 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; bh=DptObsAP5p3tg+qyFAYzmDshEMZvd58wweWp6tDKK14=; b=H1P7UsX/WWx69z7JlmW2qH0hm5uD7Iyb9JS3002D+6g2R18PxcAGXSIPn3ldgmvu4A drsLQYI3Zzzo1KQUPIS8N4Bc5o3FTIry8QU7/p2sXSrBS/SP5FfCFWgFSxIDZHrTysJy wzP2VmjSOkmYRo3GbtMbQ+T2svYEQdXN4F6nO1bB3ULf/w3cuUtCKLmS8gMLN69T5Lqc 9OGTOFc0rhrqIKG6ctdIzXhARv5lyeTNN9a+PbWDlSlnMAfHJqxFIYyfG+h+rGJZa23K k8ZtuBVx63PSDu57i8ZZGzxsgg2CaRIkx2jCDgHuH+mOx9hoYkHC2KiTAK76V2FvCs6z RNeQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u7si317500edo.567.2020.09.12.18.24.08; Sat, 12 Sep 2020 18:24:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725922AbgIMBXZ (ORCPT + 99 others); Sat, 12 Sep 2020 21:23:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36036 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725889AbgIMBXY (ORCPT ); Sat, 12 Sep 2020 21:23:24 -0400 Received: from shards.monkeyblade.net (shards.monkeyblade.net [IPv6:2620:137:e000::1:9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC8E5C061573; Sat, 12 Sep 2020 18:23:21 -0700 (PDT) Received: from localhost (unknown [IPv6:2601:601:9f00:477::3d5]) (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 83A8D128FCF29; Sat, 12 Sep 2020 18:06:27 -0700 (PDT) Date: Sat, 12 Sep 2020 18:22:19 -0700 (PDT) Message-Id: <20200912.182219.1013721666435098048.davem@davemloft.net> To: luojiaxing@huawei.com Cc: kuba@kernel.org, idos@mellanox.com, ogerlitz@mellanox.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linuxarm@huawei.com Subject: Re: [PATCH net-next] net: ethernet: mlx4: Avoid assigning a value to ring_cons but not used it anymore in mlx4_en_xmit() From: David Miller In-Reply-To: <1599898095-10712-1-git-send-email-luojiaxing@huawei.com> References: <1599898095-10712-1-git-send-email-luojiaxing@huawei.com> X-Mailer: Mew version 6.8 on Emacs 27.1 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 [2620:137:e000::1:9]); Sat, 12 Sep 2020 18:06:27 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Luo Jiaxing Date: Sat, 12 Sep 2020 16:08:15 +0800 > We found a set but not used variable 'ring_cons' in mlx4_en_xmit(), it will > cause a warning when build the kernel. And after checking the commit record > of this function, we found that it was introduced by a previous patch. > > So, We delete this redundant assignment code. > > Fixes: 488a9b48e398 ("net/mlx4_en: Wake TX queues only when there's enough room") > > Signed-off-by: Luo Jiaxing Looks good, applied, thanks.