Re: [PATCH v2 1/1] lib: Remove dead code

From: Greg KH
Date: Fri Dec 20 2024 - 02:10:21 EST


On Thu, Dec 19, 2024 at 11:45:01PM +0100, Ariel Otilibili wrote:
> This is a follow up from a discussion in Xen:
>
> The if-statement tests `res` is non-zero; meaning the case zero is never reached.
>
> Link: https://lore.kernel.org/all/7587b503-b2ca-4476-8dc9-e9683d4ca5f0@xxxxxxxx/
> Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
> Suggested-by: Jan Beulich <jbeulich@xxxxxxxx>
> Signed-off-by: Ariel Otilibili <ariel.otilibili-anieli@xxxxxxxxxx>
> --
> Cc: stable@xxxxxxxxxxxxxxx

Why is "removing dead code" a stable kernel thing?

confused,

greg k-h