mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 20:33:58 -04:00
net: hns3: Limiting the scope of vector_ring_chain variable
[ Upstream commit d392ecd1bc29ae15b0e284d5f732c2d36f244271 ]
Limiting the scope of the variable vector_ring_chain to the block where it
is used.
Fixes: 424eb834a9 ("net: hns3: Unified HNS3 {VF|PF} Ethernet Driver for hip08 SoC")
Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
cab33b3b6d
commit
c8f7e2e047
1 changed files with 2 additions and 1 deletions
|
|
@ -3322,7 +3322,6 @@ static void hns3_nic_set_cpumask(struct hns3_nic_priv *priv)
|
|||
|
||||
static int hns3_nic_init_vector_data(struct hns3_nic_priv *priv)
|
||||
{
|
||||
struct hnae3_ring_chain_node vector_ring_chain;
|
||||
struct hnae3_handle *h = priv->ae_handle;
|
||||
struct hns3_enet_tqp_vector *tqp_vector;
|
||||
int ret = 0;
|
||||
|
|
@ -3354,6 +3353,8 @@ static int hns3_nic_init_vector_data(struct hns3_nic_priv *priv)
|
|||
}
|
||||
|
||||
for (i = 0; i < priv->vector_num; i++) {
|
||||
struct hnae3_ring_chain_node vector_ring_chain;
|
||||
|
||||
tqp_vector = &priv->tqp_vector[i];
|
||||
|
||||
tqp_vector->rx_group.total_bytes = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue