]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: Limiting the scope of vector_ring_chain variable
authorSalil Mehta <salil.mehta@huawei.com>
Mon, 5 Apr 2021 17:28:25 +0000 (18:28 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 Apr 2021 22:04:09 +0000 (15:04 -0700)
commit7f624862c1a5ff60eda07b3675c87b29622b8eed
tree853e374483775c60eb24e6f5efbf562ab7eac8f0
parent260bbc20c87f473098e8caa33c7bb13fc2a8c9a3
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: 87d50ed74a36 ("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>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c