]> git.baikalelectronics.ru Git - kernel.git/commit
ibmvnic: merge ibmvnic_reset_init and ibmvnic_init
authorLijun Pan <ljp@linux.ibm.com>
Wed, 19 Aug 2020 22:52:26 +0000 (17:52 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Aug 2020 23:11:33 +0000 (16:11 -0700)
commit763ee3ecb3a72cbe52bde6a3e0d5b3922ba834d3
treed3acde490d61ad838e87ae4911809f3e320e44a0
parente1501ecb0eda19c1b3173bb517fd70ca92a01d95
ibmvnic: merge ibmvnic_reset_init and ibmvnic_init

These two functions share the majority of the code, hence merge
them together. In the meanwhile, add a reset pass-in parameter
to differentiate them. Thus, the code is easier to read and to tell
the difference between reset_init and regular init.

Signed-off-by: Lijun Pan <ljp@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ibmvnic.c