]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: optimize local variable initialization
authorGuangbin Huang <huangguangbin2@huawei.com>
Thu, 31 Oct 2019 11:23:21 +0000 (19:23 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 31 Oct 2019 19:03:23 +0000 (12:03 -0700)
commit1872a1cd274a4152fba0da25021411d392428e56
tree8e4df658fdf2bc5ebe403fbb73adbaab11ae891f
parent727631fcdab1e1126f8c32b0694984a8e0a34e0f
net: hns3: optimize local variable initialization

The variable tx_ring is unnecessary to be initialized as it will be set
before used, and the variable rst_cnt is better to be initialized when
declaration for simplification.

Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c