]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net: hns3: fix two coding style issues in hclgevf_main.c
authorHuazhong Tan <tanhuazhong@huawei.com>
Sat, 30 May 2020 01:08:31 +0000 (09:08 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 31 May 2020 00:41:22 +0000 (17:41 -0700)
Remove a redundant blank line in hclgevf_cmd_set_promisc_mode(),
and fix a reverse xmas tree coding style issue in
hclgevf_set_rss_tc_mode().

Reported-by: Jian Shen <shenjian15@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c

index a8c0e79901f52ee86dda24ca8296725020c7c3e1..1b9578d0bd800b91d622f9b4620d54d92f7eec1a 100644 (file)
@@ -669,8 +669,8 @@ static int hclgevf_set_rss_tc_mode(struct hclgevf_dev *hdev,  u16 rss_size)
        u16 tc_size[HCLGEVF_MAX_TC_NUM];
        struct hclgevf_desc desc;
        u16 roundup_size;
-       int status;
        unsigned int i;
+       int status;
 
        req = (struct hclgevf_rss_tc_mode_cmd *)desc.data;
 
@@ -1143,7 +1143,6 @@ static int hclgevf_cmd_set_promisc_mode(struct hclgevf_dev *hdev,
        send_msg.en_mc = en_mc_pmc ? 1 : 0;
 
        ret = hclgevf_send_mbx_msg(hdev, &send_msg, false, NULL, 0);
-
        if (ret)
                dev_err(&hdev->pdev->dev,
                        "Set promisc mode fail, status is %d.\n", ret);