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>
This commit is contained in:
parent
816cd16883
commit
9a7923668b
@ -1266,10 +1266,8 @@ int mlxsw_sp_dpipe_init(struct mlxsw_sp *mlxsw_sp)
|
||||
struct devlink *devlink = priv_to_devlink(mlxsw_sp->core);
|
||||
int err;
|
||||
|
||||
err = devlink_dpipe_headers_register(devlink,
|
||||
&mlxsw_sp_dpipe_headers);
|
||||
if (err)
|
||||
return err;
|
||||
devlink_dpipe_headers_register(devlink, &mlxsw_sp_dpipe_headers);
|
||||
|
||||
err = mlxsw_sp_dpipe_erif_table_init(mlxsw_sp);
|
||||
if (err)
|
||||
goto err_erif_table_init;
|
||||
|
@ -1590,7 +1590,7 @@ int devlink_dpipe_table_register(struct devlink *devlink,
|
||||
void *priv, bool counter_control_extern);
|
||||
void devlink_dpipe_table_unregister(struct devlink *devlink,
|
||||
const char *table_name);
|
||||
int devlink_dpipe_headers_register(struct devlink *devlink,
|
||||
void devlink_dpipe_headers_register(struct devlink *devlink,
|
||||
struct devlink_dpipe_headers *dpipe_headers);
|
||||
void devlink_dpipe_headers_unregister(struct devlink *devlink);
|
||||
bool devlink_dpipe_table_counter_enabled(struct devlink *devlink,
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user