]> 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)
commit1540ac46d0db8244bfa08a05a5b77b39548f92db
treed3acde490d61ad838e87ae4911809f3e320e44a0
parent2a0dbef0b04917ba204021d3d8da280375fa7283
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