Re: [PATCH] edac: Fix reference count leak in edac_device_register_sysfs_main_kobj()

From: Borislav Petkov
Date: Fri May 29 2020 - 05:36:55 EST


On Fri, May 29, 2020 at 11:20:42AM +0200, Markus Elfring wrote:
> * The label âerr_outâ can be replaced by direct return statement,
> can't it?

No, it cannot. It keeps the error handling code out-of-line so that the
function body remains readable.

--
Regards/Gruss,
Boris.

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