From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lino Sanfilippo Date: Sat, 31 Jan 2015 22:09:44 +0000 Subject: Re: [PATCH] net: sched: One function call less in em_meta_change() after error detection Message-Id: <54CD52A8.3040909@gmx.de> List-Id: References: <5307CAA2.8060406@users.sourceforge.net> <530A086E.8010901@users.sourceforge.net> <530A72AA.3000601@users.sourceforge.net> <530B5FB6.6010207@users.sourceforge.net> <530C5E18.1020800@users.sourceforge.net> <530CD2C4.4050903@users.sourceforge.net> <530CF8FF.8080600@users.sourceforge.net> <530DD06F.4090703@users.sourceforge.net> <5317A59D.4@users.sourceforge.net> <54CD042E.6030606@users.sourceforge.net> <54CD15EE.5040401@gmx.de> <54CD4EB2.4010509@users.sourceforge.net> In-Reply-To: <54CD4EB2.4010509@users.sourceforge.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: SF Markus Elfring , "David S. Miller" , Jamal Hadi Salim , netdev@vger.kernel.org Cc: LKML , kernel-janitors@vger.kernel.org, Julia Lawall On 31.01.2015 22:52, SF Markus Elfring wrote: >>> -errout: >>> - if (err && meta) >>> - meta_delete(meta); >> >> Since this patch seems to be about optimization and cleanup you should >> probably also remove the now unnecessary initialization of "meta" with >> NULL at the beginning of the function... > > Will the optimiser of the C compiler drop any remaining unnecessary > variable initialisations? > I dont know if that matters, since the code is not only used by compilers but also read by humans. > Do you want another update step here? > I am not the one who decides if this patch is acceptable or not. But I vote for a removal of that assignment (as a part of the same patch). Regards, Lino