diff options
author | Jiri Pirko <jiri@nvidia.com> | 2022-07-13 16:18:51 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-07-14 21:58:46 -0700 |
commit | 9a7923668bc779dd601d94704b4dd895a2ef6a77 (patch) | |
tree | a743ca5527bcdb7096a981903b7ae23daefbe554 /net | |
parent | 816cd1688331e0ffa1927889c15e7ed56650a183 (diff) | |
download | linux-9a7923668bc779dd601d94704b4dd895a2ef6a77.tar.gz linux-9a7923668bc779dd601d94704b4dd895a2ef6a77.tar.bz2 linux-9a7923668bc779dd601d94704b4dd895a2ef6a77.zip |
net: devlink: make devlink_dpipe_headers_register() return void
The return value is not used, so change the return value type to void.
Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Acked-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net')
-rw-r--r-- | net/core/devlink.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/net/core/devlink.c b/net/core/devlink.c index 2b2e454ebd78..c261bba9ab76 100644 --- a/net/core/devlink.c +++ b/net/core/devlink.c @@ -10425,13 +10425,12 @@ EXPORT_SYMBOL_GPL(devlink_sb_unregister); * * Register the headers supported by hardware. */ -int devlink_dpipe_headers_register(struct devlink *devlink, - struct devlink_dpipe_headers *dpipe_headers) +void devlink_dpipe_headers_register(struct devlink *devlink, + struct devlink_dpipe_headers *dpipe_headers) { devl_lock(devlink); devlink->dpipe_headers = dpipe_headers; devl_unlock(devlink); - return 0; } EXPORT_SYMBOL_GPL(devlink_dpipe_headers_register); |