mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-16 01:16:42 +07:00
net: hns3: fix two coding style issues in hclgevf_main.c
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>
This commit is contained in:
parent
ec4d939220
commit
2adb8187e5
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user