net: hns3: Remove extra space and brackets
authorJian Shen <shenjian15@huawei.com>
Thu, 19 Jul 2018 14:47:00 +0000 (15:47 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 21 Jul 2018 15:44:23 +0000 (08:44 -0700)
Remove extra space and brackets.

Signed-off-by: Jian Shen <shenjian15@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h

index 656c3e622ec8c4c42db779f437f4f0ab2a4835ba..e66a762e246285fca5a27fbe10e65d77a44bc305 100644 (file)
@@ -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;
 
index cca5b2f34a47f50d1144801c2bfb0fb416bce52a..b09798847716e8b23a1ed2ca4df48e551a35ba1b 100644 (file)
@@ -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,
index a5abf8ee9b9681cf36b1e10b8a172e879e32cd69..b01a51d941f0a1950461151a17c8bdab0e48a188 100644 (file)
 /* 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