提交 c5a70af9 编写于 作者: G Guangbin Huang 提交者: Xie XiuQi

net: hns3: delete unused variable in hclge_restore_vlan_table

driver inclusion
category: bugfix
bugzilla: NA
CVE: NA

The variable qos in function hclge_restore_vlan_table is never used,
so this patch deletes it.

Feature or Bugfix:Bugfix
Signed-off-by: NGuangbin Huang <huangguangbin2@huawei.com>
Reviewed-by: Nlinyunsheng <linyunsheng@huawei.com>
Reviewed-by: NYang Yingliang <yangyingliang@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 e435d318
...@@ -8175,7 +8175,7 @@ void hclge_restore_vlan_table(struct hnae3_handle *handle) ...@@ -8175,7 +8175,7 @@ void hclge_restore_vlan_table(struct hnae3_handle *handle)
struct hclge_vport *vport = hclge_get_vport(handle); struct hclge_vport *vport = hclge_get_vport(handle);
struct hclge_vport_vlan_cfg *vlan, *tmp; struct hclge_vport_vlan_cfg *vlan, *tmp;
struct hclge_dev *hdev = vport->back; struct hclge_dev *hdev = vport->back;
u16 vlan_proto, qos; u16 vlan_proto;
u16 state, vlan_id; u16 state, vlan_id;
int i; int i;
...@@ -8184,7 +8184,6 @@ void hclge_restore_vlan_table(struct hnae3_handle *handle) ...@@ -8184,7 +8184,6 @@ void hclge_restore_vlan_table(struct hnae3_handle *handle)
vport = &hdev->vport[i]; vport = &hdev->vport[i];
vlan_proto = vport->port_base_vlan_cfg.vlan_info.vlan_proto; vlan_proto = vport->port_base_vlan_cfg.vlan_info.vlan_proto;
vlan_id = vport->port_base_vlan_cfg.vlan_info.vlan_tag; vlan_id = vport->port_base_vlan_cfg.vlan_info.vlan_tag;
qos = vport->port_base_vlan_cfg.vlan_info.qos;
state = vport->port_base_vlan_cfg.state; state = vport->port_base_vlan_cfg.state;
if (state != HNAE3_PORT_BASE_VLAN_DISABLE) { if (state != HNAE3_PORT_BASE_VLAN_DISABLE) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册