]> 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)
commit02f5869838daeffe2e1c2de32d6cea9557441749
tree8e4df658fdf2bc5ebe403fbb73adbaab11ae891f
parent71fddd9325917425a3c936a168113e99c59e3c7a
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