[Intel-wired-lan] [PATCH net-next v1] devlink: Make devlink_register to be void

Jiri Pirko jiri at resnulli.us
Wed Sep 22 12:15:48 UTC 2021


Wed, Sep 22, 2021 at 10:58:03AM CEST, leon at kernel.org wrote:
>From: Leon Romanovsky <leonro at nvidia.com>
>
>devlink_register() can't fail and always returns success, but all drivers
>are obligated to check returned status anyway. This adds a lot of boilerplate
>code to handle impossible flow.
>
>Make devlink_register() void and simplify the drivers that use that
>API call.
>
>Signed-off-by: Leon Romanovsky <leonro at nvidia.com>

Reviewed-by: Jiri Pirko <jiri at nvidia.com>


More information about the Intel-wired-lan mailing list