From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Horman Date: Wed, 22 Sep 2021 14:01:05 +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: <20210922120105.GA2994@corigine.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: intel-wired-lan@osuosl.org List-ID: On Wed, Sep 22, 2021 at 11:58:03AM +0300, Leon Romanovsky 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 NFP portion: Acked-by: Simon Horman