sfc: avoid duplicated code in ef10_sriov
authorÍñigo Huguet <ihuguet@redhat.com>
Mon, 21 Jun 2021 15:32:38 +0000 (17:32 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 22 Jun 2021 16:51:13 +0000 (09:51 -0700)
commit3ddd6e2f71092766b6040b9c33cf9906577b4025
tree8ea67bc2f49f45cf486368b131e12fcb44e89d86
parent9a022e76500e8ce86dbce83c7856cf59820dce24
sfc: avoid duplicated code in ef10_sriov

The fail path of efx_ef10_sriov_alloc_vf_vswitching is identical to the
full content of efx_ef10_sriov_free_vf_vswitching, so replace it for a
single call to efx_ef10_sriov_free_vf_vswitching.

Signed-off-by: Íñigo Huguet <ihuguet@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sfc/ef10_sriov.c