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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 May 2021 07:50:32 +0000 (09:50 +0200)
commit3cf9fac71b7903065719d4743772d6302367b6fe
treeeb5b098ed48545b4ee18ef31d418ffabf04917ed
parentdb574a60c48236addd86113da86f1343078ee4fc
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: 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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c