Skip to content

Commit 41c761d

Browse files
Ariel Otilibiliakpm00
authored andcommitted
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/[email protected]/ Link: https://lkml.kernel.org/r/[email protected] Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Signed-off-by: Ariel Otilibili <[email protected]> Suggested-by: Jan Beulich <[email protected]> Cc: Andrew Cooper <[email protected]> Cc: Anthony PERARD <[email protected]> Cc: Michal Orzel <[email protected]> Cc: Julien Grall <[email protected]> Cc: Roger Pau Monné <[email protected]> Cc: Stefano Stabellini <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 052e97d commit 41c761d

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lib/inflate.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1257,8 +1257,6 @@ static int INIT gunzip(void)
12571257
/* Decompress */
12581258
if ((res = inflate())) {
12591259
switch (res) {
1260-
case 0:
1261-
break;
12621260
case 1:
12631261
error("invalid compressed format (err=1)");
12641262
break;

0 commit comments

Comments
 (0)