Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3115935ybz; Sun, 19 Apr 2020 18:09:16 -0700 (PDT) X-Google-Smtp-Source: APiQypJNfA3yVO14Q7JfYY4+3GmpsFuwCagZb0icHXE6jFy56j7Ggnri0KAB4H9baP9bLS/GgibE X-Received: by 2002:aa7:d1d6:: with SMTP id g22mr12677294edp.36.1587344955893; Sun, 19 Apr 2020 18:09:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587344955; cv=none; d=google.com; s=arc-20160816; b=f7Wfnl6/sdn5L7/r6wp8GZAAiNGeZuLEL2vC9lQY3jNU6MJIEmLODF/C1ytKBncf6p lRjBXH+znJjuRzYYHT640v4uEARTlSUH3IGBi7AVQTN0ZPNDOdoXeHxvhrIjvXKQ5CCt Cw3f5UE6R1W4Tt+2v+c4/5EcWfAm9dXuFMFs4GzoB0ThyMd1cEd2Hehd/XeuqyA5AP5u Bc3Cxd+FLEEbmnSjvbwEiobVyonfrEjxSUZFzpSH44K+jzbwX0ZpXnek7XlrBlmesc8b WrPDYyHN1lGMghVAN4SVMgnEoyE2peG5Qjq/qbUp3JYy5RtiGQ9IWpke3o50pHlXffi3 cPgA== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=5ONe5FkRzVXpw2EoZektNQY1YWWPRdiypJgEmM+JZo0=; b=b5VLwEiIQYHYUJ+jEHxCg7SV+vEuX7OKHcWK6kL6xM2nLN89wpYWGbgz63siohf0JR l4UR8Iajc2JX5UCAdqc90zyuepbXeyqab4umYtIDCIdphMCJ4JsCE5Be4FevC55NcTO3 p/Q1SxCU30ODOLEfi8E82atk9jO0CEFfQcHAS+he1abF8A+1l+K3u4Y5F8E+gbFzuZas 6VMA+554UMtieDneoJBYDnPFdxckwxYz5sD3nCpq6otg+I6i4M9hK7RxZZMgpKRAugkB wPCYhICCofinPvW/BOM+D0LD5G5bHQTjtacPfDz8ikP0XHBdScQc7s4+Uc/8dHLyQZia 1Www== 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 a7si6201601edb.221.2020.04.19.18.08.53; Sun, 19 Apr 2020 18:09:15 -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 S1726091AbgDTBFA (ORCPT + 99 others); Sun, 19 Apr 2020 21:05:00 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:49350 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725949AbgDTBFA (ORCPT ); Sun, 19 Apr 2020 21:05:00 -0400 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 131943B4B51D164DD656; Mon, 20 Apr 2020 09:04:58 +0800 (CST) Received: from [127.0.0.1] (10.74.149.191) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.487.0; Mon, 20 Apr 2020 09:04:48 +0800 Subject: Re: [PATCH net-next 01/10] net: hns3: split out hclge_fd_check_ether_tuple() To: David Miller CC: , , , , , , References: <1587192429-11463-1-git-send-email-tanhuazhong@huawei.com> <1587192429-11463-2-git-send-email-tanhuazhong@huawei.com> <20200418.201746.783676213458110248.davem@davemloft.net> From: tanhuazhong Message-ID: Date: Mon, 20 Apr 2020 09:04:48 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <20200418.201746.783676213458110248.davem@davemloft.net> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.74.149.191] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/4/19 11:17, David Miller wrote: > From: Huazhong Tan > Date: Sat, 18 Apr 2020 14:47:00 +0800 > >> +static int hclge_fd_check_spec(struct hclge_dev *hdev, >> + struct ethtool_rx_flow_spec *fs, >> + u32 *unused_tuple) >> +{ >> + int ret = 0; > > There is no code path that uses 'ret' without it first being > assigned. If I let this code in, then someone is going to > submit a fixup patch removing the initialization. > Yes, will modify it. Thanks. > . >