Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp790971imm; Fri, 29 Jun 2018 06:30:48 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJs6rJsgfa4XMfzY0hA5sCDU9RNeqgD1BvIFM+/All847llnSZ6TGkRqVY5rxWtn9O3WfVt X-Received: by 2002:a63:6e07:: with SMTP id j7-v6mr12851560pgc.251.1530279048846; Fri, 29 Jun 2018 06:30:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530279048; cv=none; d=google.com; s=arc-20160816; b=paMgmIlydG1NP2CwiOn7gMN7NgEipnyIpSrRdEsV2+DKBGioJNl0/EtCtbk2v6uv+I AgJnTK+IP/VJXmBcjIm2W1eJqEJDp7DAydaJu5SztIFhkEsJ29dFE7Wr1Pb/tIX+L3k6 +alMVVT6iBiOoQ92yWNHZdXCI9tL+xcynkwNcxs1a6/7jwWOeamFCjeglMyG2y9h76jk Zah3Z/yx/ChcqwpebBS2TXiOusB2dgKX0eoIn4U1TLSn2rdL+ZpxAkTXUZUkJ8tu1aTA 0PSPoxNQMYLaDDjC8cmgx/l9KtCSxP1wQzwGMgJor7GEJOMKlN+sleRRq2r0kMd3uXcn ALtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=RK6u/YfZDgc5ZhfsnRPTaqoYsB3wCWqLsW69Vy5fHBI=; b=TsAxPX7zmKhyU+NL1LD7QW8cm/STY6SgMghzfJKzsjShqUV8BVtCuksSwY/P8ahMWL qPo21W6Zxabyns/k3TVlFy5lu2DZXR/u5Gxk8spnPs9GLXtxr0zPegBXmKAtINqL5sTC 3MgRXVyPqPFAdQPrkE1N1nLhWmKOJDX4Ox4JWcM/yLO8fOdNSmoEan3za9jCtg8m0fZ0 Y8DW3lUo3IXnxrAfuph771rPmy29N3ffDFF5Bjn7ubmLVhJ+kRiWZyBEH88Dr+P7koyg UIlZoQLGdm/vPYNZFhVtEv71nLWYsz8Q4OWXF1CnVJ995qNsghIFCrJUP/9dzqiSUYSK /1kQ== 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 f10-v6si8196525pgn.0.2018.06.29.06.30.34; Fri, 29 Jun 2018 06:30:48 -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 S1754858AbeF2Kyl (ORCPT + 99 others); Fri, 29 Jun 2018 06:54:41 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:49110 "EHLO huawei.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1750892AbeF2Kyi (ORCPT ); Fri, 29 Jun 2018 06:54:38 -0400 Received: from DGGEMS412-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id D3E5B6BF4217B; Fri, 29 Jun 2018 18:54:19 +0800 (CST) Received: from linux-ioko.site (10.71.200.31) by DGGEMS412-HUB.china.huawei.com (10.3.19.212) with Microsoft SMTP Server id 14.3.382.0; Fri, 29 Jun 2018 18:51:22 +0800 From: Peng Li To: CC: , , , , , Subject: [PATCH net-next 01/10] net: hns3: remove unused hclge_ring_to_dma_dir Date: Fri, 29 Jun 2018 19:22:56 +0800 Message-ID: <1530271385-49668-2-git-send-email-lipeng321@huawei.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1530271385-49668-1-git-send-email-lipeng321@huawei.com> References: <1530271385-49668-1-git-send-email-lipeng321@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.71.200.31] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Huazhong Tan hclge_ring_to_dma_dir is unused anywhere. This patch removes it. Signed-off-by: Huazhong Tan Signed-off-by: Peng Li --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c index 383ecf0..6a9576b 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c @@ -18,8 +18,7 @@ #include "hclge_main.h" #define hclge_is_csq(ring) ((ring)->flag & HCLGE_TYPE_CSQ) -#define hclge_ring_to_dma_dir(ring) (hclge_is_csq(ring) ? \ - DMA_TO_DEVICE : DMA_FROM_DEVICE) + #define cmq_ring_to_dev(ring) (&(ring)->dev->pdev->dev) static int hclge_ring_space(struct hclge_cmq_ring *ring) -- 1.9.1