Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp3534642imm; Mon, 2 Jul 2018 00:25:53 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLj1D18tZWILQoR/uZIdxtD5WuoH3rxWalXGBlHgl5JdbNTj3/R5zHW0TSA5vljBzFaqt/q X-Received: by 2002:a65:4348:: with SMTP id k8-v6mr20941440pgq.341.1530516353039; Mon, 02 Jul 2018 00:25:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530516353; cv=none; d=google.com; s=arc-20160816; b=xMGqhE39p6lajSAOUosD8ZlIljhfr3eEXyX1Dp6W1iHbFSeG9KHuoBwTwUVJnmev2b i/ehOoGY0AgxHIJoxma47htLPQ0zBVE3w3pIAjG4iVxSIo3kz306ZRzJMaEJWMA7OVE1 844nB1twlATTlPcEyiZMtHSlx1nP41DY2Rd0i7E2KBzImSU/IGQT94O8D4NwDxq3drfw bolHJeAbOYMX618r3a2ovONGFzFR3f0kfyh0Y5CN0ExS+wLsUcxVGHwCa5IUdTWP4gpz I40D/YCSH27GpNGVyzYTgU2+TaGCnD+E460nEFmcnydDGlIUSnFzJPOlwV/PKAK8yCAd sXlw== 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=HDu6AzmI5QV2m6vRjLAyyR/CNaXMxxjuC83Q8hx0dS2l8B0UcvETl2YeoKugk47UqP bDnfjX89b0B+EhgJqpeQavfBjny7bZLRW31SsUtJ5i3IPbdpBoHKtOcRR3ycBkKRkgp+ PU8nsijpqFs07i8qwrZXrEThdveNNtnaB0/edoquI7ZlN26+025Yj9EePc0ED71mAjML /gJAnKNM9QeGdXM4bYs2wQ5bc54x3VPjJnANydAjP+Rl9qJyN5Dc7GiGkIhSZex8wkjy nYaqNvxdp12cKdN55Eix96zYB9cdv9sI7c6kFJ2XS9LPN0BApH1QSS2Qs/15IgxmAtP2 MEDQ== 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 f40-v6si15937871plb.504.2018.07.02.00.25.38; Mon, 02 Jul 2018 00:25:53 -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 S1753661AbeGBHUh (ORCPT + 99 others); Mon, 2 Jul 2018 03:20:37 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:9147 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753407AbeGBHTO (ORCPT ); Mon, 2 Jul 2018 03:19:14 -0400 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 75E32B59048B9; Mon, 2 Jul 2018 15:18:57 +0800 (CST) Received: from linux-ioko.site (10.71.200.31) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.382.0; Mon, 2 Jul 2018 15:18:49 +0800 From: Peng Li To: CC: , , , , , Subject: [PATCH V2 net-next 1/9] net: hns3: remove unused hclge_ring_to_dma_dir Date: Mon, 2 Jul 2018 15:50:18 +0800 Message-ID: <1530517826-69226-2-git-send-email-lipeng321@huawei.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1530517826-69226-1-git-send-email-lipeng321@huawei.com> References: <1530517826-69226-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