summaryrefslogtreecommitdiff
path: root/rust/helpers/page.c
diff options
context:
space:
mode:
authorPrzemek Kitszel <przemyslaw.kitszel@intel.com>2024-10-23 16:09:03 +0300
committerJakub Kicinski <kuba@kernel.org>2024-10-30 02:52:57 +0300
commite0b140c44f322230c2bb97a7e8ac773419f7e81a (patch)
tree946ebf28131747512fdbcc0d5dd8c09e9f78e690 /rust/helpers/page.c
parenta788acf154eb62a29bed75886d6e626744379cf4 (diff)
downloadlinux-e0b140c44f322230c2bb97a7e8ac773419f7e81a.tar.xz
devlink: devl_resource_register(): differentiate error codes
Differentiate error codes of devl_resource_register(). Replace one of -EINVAL exit paths by -EEXIST. This should aid developers introducing new resources and registering them in the wrong order. Reviewed-by: Wojciech Drewek <wojciech.drewek@intel.com> Reviewed-by: Jiri Pirko <jiri@nvidia.com> Reviewed-by: Joe Damato <jdamato@fastly.com> Signed-off-by: Przemek Kitszel <przemyslaw.kitszel@intel.com> Link: https://patch.msgid.link/20241023131248.27192-4-przemyslaw.kitszel@intel.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'rust/helpers/page.c')
0 files changed, 0 insertions, 0 deletions