Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

net: hns3: Limiting the scope of vector_ring_chain variable

Limiting the scope of the variable vector_ring_chain to the block where it
is used.

Fixes: 424eb834a9be ("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>

authored by

Salil Mehta and committed by
David S. Miller
d392ecd1 eeb85a14

+2 -1
+2 -1
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
··· 3747 3747 3748 3748 static int hns3_nic_init_vector_data(struct hns3_nic_priv *priv) 3749 3749 { 3750 - struct hnae3_ring_chain_node vector_ring_chain; 3751 3750 struct hnae3_handle *h = priv->ae_handle; 3752 3751 struct hns3_enet_tqp_vector *tqp_vector; 3753 3752 int ret; ··· 3778 3779 } 3779 3780 3780 3781 for (i = 0; i < priv->vector_num; i++) { 3782 + struct hnae3_ring_chain_node vector_ring_chain; 3783 + 3781 3784 tqp_vector = &priv->tqp_vector[i]; 3782 3785 3783 3786 tqp_vector->rx_group.total_bytes = 0;