]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite6873e4fad0080f36f0da5f05bd9922dadc0b5d3
tree8ea67bc2f49f45cf486368b131e12fcb44e89d86
parente56dd892f4f666c2ea540fc586182f4459cba7a9
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