[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH 1/1] xen/common: Remove dead code
On Thursday, December 19, 2024 10:10 CET, "Ariel Otilibili-Anieli" <Ariel.Otilibili-Anieli@xxxxxxxxxx> wrote: > On Thursday, December 19, 2024 09:32 CET, Jan Beulich <jbeulich@xxxxxxxx> > wrote: > > > On 19.12.2024 00:34, Ariel Otilibili wrote: > > > The if-statement tests `res` is non-zero; meaning the case zero is never > > > reached. > > > > > > Coverity-ID: 1055253 > > > Fixes: e2b1ebf4de ("x86: Support booting a bzImage format domain 0 > > > kernel.") > > > Signed-off-by: Ariel Otilibili <Ariel.Otilibili-Anieli@xxxxxxxxxx> > > > > I certainly agree with the change, especially if Coverity complains about > > it. > > In fact I'd expect Eclair to complain too, for this being unreachable or > > dead > > code (I'm never sure which one's which in their nomenclature). The Misra > > violation addressed may therefore want mentioning, too. > > I didn't know Eclair and Miscra could send warnings. Are they commands > available for that? > > > > However, the commit referenced says "xen/common/inflate.c is taken > > unmodified > > from Linux v2.6.28." Therefore the preferred approach would be to correct > > the > > original first, then pull in that patch to our tree. (And yes, the code is > > still as was even in 6.13-rc3.) > > So old a commit... > > This approach makes sense, Jan; thanks for the feedback. I am sending the > patch to Linux. > > And will keep you posted. The patch sent to Linux, https://lore.kernel.org/lkml/20241219092615.644642-1-ariel.otilibili-anieli@xxxxxxxxxx/ > > > > Jan
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |