ibmvnic: remove duplicate napi_schedule call in do_reset function
authorLijun Pan <lijunp213@gmail.com>
Wed, 14 Apr 2021 07:46:15 +0000 (02:46 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 14 Apr 2021 20:10:58 +0000 (13:10 -0700)
commitd3a6abccbd272aea7dc2c6f984bb5a2c11278e44
treea6e673e81e72c513c1acb9aff8394c9eb8b58808
parent0775ebc4cf8554bdcd2c212669a0868ab68df5c0
ibmvnic: remove duplicate napi_schedule call in do_reset function

During adapter reset, do_reset/do_hard_reset calls ibmvnic_open(),
which will calls napi_schedule if previous state is VNIC_CLOSED
(i.e, the reset case, and "ifconfig down" case). So there is no need
for do_reset to call napi_schedule again at the end of the function
though napi_schedule will neglect the request if napi is already
scheduled.

Fixes: ed651a10875f ("ibmvnic: Updated reset handling")
Signed-off-by: Lijun Pan <lijunp213@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ibmvnic.c