From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jiri Pirko Date: Wed, 22 Sep 2021 14:15:48 +0200 Subject: [Intel-wired-lan] [PATCH net-next v1] devlink: Make devlink_register to be void In-Reply-To: <311a6c7e74ad612474446890a12c9d310b9507ed.1632300324.git.leonro@nvidia.com> References: <311a6c7e74ad612474446890a12c9d310b9507ed.1632300324.git.leonro@nvidia.com> Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: intel-wired-lan@osuosl.org List-ID: Wed, Sep 22, 2021 at 10:58:03AM CEST, leon at kernel.org wrote: >From: Leon Romanovsky > >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 Reviewed-by: Jiri Pirko