From: Ariel Otilibili <ariel.otilibili-ani...@eurecom.fr> This is a follow up from a discussion in Xen:
The if-statement tests that `res` is non-zero; meaning the case zero is never reached. Link: https://lore.kernel.org/all/7587b503-b2ca-4476-8dc9-e9683d4ca...@suse.com/ Link: https://lkml.kernel.org/r/20241219092615.644642-2-ariel.otilibili-ani...@eurecom.fr Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Signed-off-by: Ariel Otilibili <ariel.otilibili-ani...@eurecom.fr> Suggested-by: Jan Beulich <jbeul...@suse.com> Signed-off-by: Andrew Morton <a...@linux-foundation.org> Origin: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 41c761dede6e Signed-off-by: Jan Beulich <jbeul...@suse.com> --- a/xen/common/gzip/inflate.c +++ b/xen/common/gzip/inflate.c @@ -1164,8 +1164,6 @@ static int __init gunzip(struct gunzip_s if ( (res = inflate(s)) ) { switch (res) { - case 0: - break; case 1: error("invalid compressed format (err=1)"); break;