[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200529093644.GC9011@zn.tnic>
Date: Fri, 29 May 2020 11:36:44 +0200
From: Borislav Petkov <bp@...en8.de>
To: Markus Elfring <Markus.Elfring@....de>
Cc: Qiushi Wu <wu000273@....edu>, linux-edac@...r.kernel.org,
linux-kernel@...r.kernel.org, kernel-janitors@...r.kernel.org,
Doug Thompson <dougthompson@...ssion.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
James Morse <james.morse@....com>, Kangjie Lu <kjlu@....edu>,
Mauro Carvalho Chehab <mchehab@...nel.org>,
Robert Richter <rrichter@...vell.com>,
Tony Luck <tony.luck@...el.com>
Subject: Re: [PATCH] edac: Fix reference count leak in
edac_device_register_sysfs_main_kobj()
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
Powered by blists - more mailing lists