Skip to content

Commit

Permalink
lib/inflate.c: remove dead code
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Ariel Otilibili authored and akpm00 committed Jan 13, 2025
1 parent 052e97d commit 41c761d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/inflate.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 41c761d

Please sign in to comment.