From patchwork Thu Jul 19 14:47:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Salil Mehta X-Patchwork-Id: 142348 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp1823085ljj; Thu, 19 Jul 2018 07:48:22 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdSioFJai1aacXA3fRMlq7bLWFc/RuYWmiPK1o5yWU+o5SJ9y6QLus4RkIMzGvC6kubstWC X-Received: by 2002:a17:902:28e9:: with SMTP id f96-v6mr10195197plb.240.1532011702650; Thu, 19 Jul 2018 07:48:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532011702; cv=none; d=google.com; s=arc-20160816; b=va581Gynd/WIeUZsk5QXb5XPRe8fyRDBJSPNsMf00PeqSU2bpi3Qltk1LKshIBDj8m 35/62sl0ypuLpi2CPwPJYdIIkpLUxUoh2LCM+cVpOIyxDWeG7xwxLs1nANkELHHQDsnz mviqgrn1UJEKRBeEHF5HXeoHxS3JCPEh9ntlKwIFAjX2sjwasOsUrT5rTJ86olXUueHt cbwHp6ysocqQujEGjgpRYWirwFkZnG4EAw5kXPbgIoxaa8fysg74TyEWgnDPWMGvGNpj PI9KxbdIwmE4PKywVVQuGe0DEPuN9oDrhrnFWKTki0jKRi99MTLteSKBX5lMy/MrDtJP C9Mg== 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=No1iu6JHBDrIVwBhTV7/E5sdAMYIlBLpF3kkjEszMgA=; b=hf1X0JnqeglVSiZMF2s+wjggUB/cOu/6XnNR8FQjMhH+51Td0F3hZJIAnQ6ZmAkwjL Pf1JqJaxC3jst/sAAFuLwoRLOpagCCWEUT471H2EXSj1MIuuD7T+yiBSz4X+w0aOAyiV agq22gIgpzObEHNe5ddsTkSq832JYOAQUuQPQEOHS4j1HPHQcoUU1S+nd3u1UkIdtAwS Yx/Bztj3aRoMEbkRweKU0G6T1/KseSchcMN+skTg/w9kDhzWrfo0dkEp7d7RNScse0BX NDhZjit1jxCOkXKerSMoENu8hULULMl0C/c/hGC5ZWsN+VK0ZZjvA3raQm0GpIZYg5jc iVdg== 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 e66-v6si5762523pfk.198.2018.07.19.07.48.22; Thu, 19 Jul 2018 07:48:22 -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 S1731947AbeGSPbt (ORCPT + 31 others); Thu, 19 Jul 2018 11:31:49 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:9702 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1731847AbeGSPbs (ORCPT ); Thu, 19 Jul 2018 11:31:48 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 4CF49F04FAFC1; Thu, 19 Jul 2018 22:47:59 +0800 (CST) Received: from S00293818-DELL1.huawei.com (10.202.226.54) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.382.0; Thu, 19 Jul 2018 22:47:54 +0800 From: Salil Mehta To: CC: , , , , , , , Jian Shen Subject: [PATCH net-next 3/9] net: hns3: Remove extra space and brackets Date: Thu, 19 Jul 2018 15:47:00 +0100 Message-ID: <20180719144706.644-4-salil.mehta@huawei.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180719144706.644-1-salil.mehta@huawei.com> References: <20180719144706.644-1-salil.mehta@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.202.226.54] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jian Shen Remove extra space and brackets. Signed-off-by: Jian Shen Signed-off-by: Peng Li Signed-off-by: Salil Mehta --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h | 2 +- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 2 +- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) -- 2.7.4 diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h index 656c3e6..e66a762 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h @@ -37,7 +37,7 @@ struct hclge_cmq_ring { dma_addr_t desc_dma_addr; struct hclge_desc *desc; struct hclge_desc_cb *desc_cb; - struct hclge_dev *dev; + struct hclge_dev *dev; u32 head; u32 tail; diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c index cca5b2f..b097988 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c @@ -4288,7 +4288,7 @@ static int hclge_add_mc_addr(struct hnae3_handle *handle, { struct hclge_vport *vport = hclge_get_vport(handle); - return hclge_add_mc_addr_common(vport, addr); + return hclge_add_mc_addr_common(vport, addr); } int hclge_add_mc_addr_common(struct hclge_vport *vport, diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h index a5abf8e..b01a51d 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h @@ -77,11 +77,11 @@ /* Copper Specific Status Register */ #define HCLGE_PHY_CSS_REG 17 -#define HCLGE_PHY_MDIX_CTRL_S (5) +#define HCLGE_PHY_MDIX_CTRL_S 5 #define HCLGE_PHY_MDIX_CTRL_M GENMASK(6, 5) -#define HCLGE_PHY_MDIX_STATUS_B (6) -#define HCLGE_PHY_SPEED_DUP_RESOLVE_B (11) +#define HCLGE_PHY_MDIX_STATUS_B 6 +#define HCLGE_PHY_SPEED_DUP_RESOLVE_B 11 /* Factor used to calculate offset and bitmap of VF num */ #define HCLGE_VF_NUM_PER_CMD 64