net: hns3: narrow two local variable range in hclgevf_reset_prepare_wait()
authorHuazhong Tan <tanhuazhong@huawei.com>
Tue, 8 Sep 2020 02:59:48 +0000 (10:59 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Sep 2020 02:51:40 +0000 (19:51 -0700)
commitd41884eecdbdd99a97018a0dbbd310a651ad197b
treed4eeb4cab9ca432480d5bafddc8851f1ce9e0adc
parentc1f1f16c4de407fa1924e3aa4ddbc567c0a86095
net: hns3: narrow two local variable range in hclgevf_reset_prepare_wait()

Since variable send_msg and ret only used in if branch, so move
their definition into the if branch.

Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c