From: Ariel Otilibili Date: Thu, 19 Dec 2024 09:21:12 +0000 (+0100) Subject: lib/inflate.c: remove dead code X-Git-Tag: v6.14-rc1~78^2~58 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=41c761dede6e865c679e8be42a266a70302630d6;p=linux-block.git lib/inflate.c: remove dead code 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-e9683d4ca5f0@suse.com/ Link: https://lkml.kernel.org/r/20241219092615.644642-2-ariel.otilibili-anieli@eurecom.fr Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Signed-off-by: Ariel Otilibili Suggested-by: Jan Beulich Cc: Andrew Cooper Cc: Anthony PERARD Cc: Michal Orzel Cc: Julien Grall Cc: Roger Pau Monné Cc: Stefano Stabellini Signed-off-by: Andrew Morton --- diff --git a/lib/inflate.c b/lib/inflate.c index fbaf03c1748d..eab886baa1b4 100644 --- a/lib/inflate.c +++ b/lib/inflate.c @@ -1257,8 +1257,6 @@ static int INIT gunzip(void) /* Decompress */ if ((res = inflate())) { switch (res) { - case 0: - break; case 1: error("invalid compressed format (err=1)"); break;