lib/inflate.c: remove dead code
PATCH 1/1 lib/inflate.c: remove dead code
From: Ariel Otilibili <[email protected]>
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.
Fixes 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by Ariel Otilibili <[email protected]>
Suggested-by Jan Beulich <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
Origin: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 41c761dede6e
Signed-off-by Jan Beulich <[email protected]>
xen/common/gzip/inflate.c +0 -2
@@ -1164,8 +1164,6 @@ static int __init gunzip(struct gunzip_sif ( (res =inflate (s)) ) {switch (res) { -case 0 : -break ;case 1 :error ("invalid compressed format (err=1)" );break ;
Quoted 7 lines · Jan Beulich
From: Ariel Otilibili <[email protected]>
This is a follow up from a discussion in Xen:
The if-statement tests that
resis non-zero; meaning the case zero is never reached.
Quoted 8 lines
Fixes 1da177e4c3f4 ("Linux-2.6.12-rc2")Signed-off-by Ariel Otilibili <[email protected]>Suggested-by Jan Beulich <[email protected]>Signed-off-by Andrew Morton <[email protected]>Origin:
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git41c761dede6eSigned-off-by Jan Beulich <[email protected]>
Acked-by Andrew Cooper <[email protected]>