Re: [PATCH] notifier: Return an error when a callback has already been registered

From: Borislav Petkov
Date: Thu Dec 02 2021 - 10:57:38 EST


On Thu, Dec 02, 2021 at 10:41:55AM -0500, Alan Stern wrote:
> A patch that adds three new lines of code has got to be simpler than and
> preferable to a patch that adds about eleven lines (including a whole new
> function), right?

Well, I like keeping things separate and prefer to keep the error
handling and warning in another function. But Sebastian asked the same
thing already so if people prefer that, I'll change it. I don't feel too
strongly about it, tbh.

Thx.

--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette