From: Markus Elfring Date: Fri, 29 May 2020 09:40:47 +0000 Subject: Re: [PATCH] edac: Fix reference count leak in edac_device_register_sysfs_main_kobj() Message-Id: List-Id: References: <28ebc99f-c0dd-00b2-7a53-9edf0df36c9c@web.de> <20200529093644.GC9011@zn.tnic> In-Reply-To: <20200529093644.GC9011@zn.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: Borislav Petkov , linux-edac@vger.kernel.org Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Doug Thompson , Greg Kroah-Hartman , James Morse , Kangjie Lu , Mauro Carvalho Chehab , Qiushi Wu , Robert Richter , Tony Luck >> * 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. Have we got different programming expectations also around the application of the Linux coding style? Regards, Markus