diff options
author | Jakub Kicinski <kuba@kernel.org> | 2023-01-06 07:34:01 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-01-06 13:56:19 +0100 |
commit | 5c5ea1d09fd8aec8319d629df47a581bd19f8f91 (patch) | |
tree | f3b6ce52715627a3b0538782a9c9b445cc4e95d0 /drivers/net/netdevsim/dev.c | |
parent | devlink: allow registering parameters after the instance (diff) | |
download | linux-5c5ea1d09fd8aec8319d629df47a581bd19f8f91.tar.xz linux-5c5ea1d09fd8aec8319d629df47a581bd19f8f91.zip |
netdevsim: rename a label
err_dl_unregister should unregister the devlink instance.
Looks like renaming it was missed in one of the reshufflings.
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/netdevsim/dev.c')
-rw-r--r-- | drivers/net/netdevsim/dev.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/netdevsim/dev.c b/drivers/net/netdevsim/dev.c index b962fc8e1397..d25f6e86d901 100644 --- a/drivers/net/netdevsim/dev.c +++ b/drivers/net/netdevsim/dev.c @@ -1563,7 +1563,7 @@ int nsim_drv_probe(struct nsim_bus_dev *nsim_bus_dev) err = devlink_params_register(devlink, nsim_devlink_params, ARRAY_SIZE(nsim_devlink_params)); if (err) - goto err_dl_unregister; + goto err_resource_unregister; nsim_devlink_set_params_init_values(nsim_dev, devlink); err = nsim_dev_dummy_region_init(nsim_dev, devlink); @@ -1629,7 +1629,7 @@ err_dummy_region_exit: err_params_unregister: devlink_params_unregister(devlink, nsim_devlink_params, ARRAY_SIZE(nsim_devlink_params)); -err_dl_unregister: +err_resource_unregister: devl_resources_unregister(devlink); err_vfc_free: kfree(nsim_dev->vfconfigs); |