lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241219224645.749233-2-ariel.otilibili-anieli@eurecom.fr>
Date: Thu, 19 Dec 2024 23:45:01 +0100
From: Ariel Otilibili <ariel.otilibili-anieli@...ecom.fr>
To: linux-kernel@...r.kernel.org
Cc: Ariel Otilibili <ariel.otilibili-anieli@...ecom.fr>,
	Jan Beulich <jbeulich@...e.com>,
	stable@...r.kernel.org,
	Andrew Morton <akpm@...ux-foundation.org>,
	Andrew Cooper <andrew.cooper3@...rix.com>,
	Anthony PERARD <anthony.perard@...es.tech>,
	Michal Orzel <michal.orzel@....com>,
	Julien Grall <julien@....org>,
	Roger Pau Monné <roger.pau@...rix.com>,
	Stefano Stabellini <sstabellini@...nel.org>,
	xen-devel@...ts.xenproject.org
Subject: [PATCH v2 1/1] lib: Remove dead code

This is a follow up from a discussion in Xen:

The if-statement tests `res` is non-zero; meaning the case zero is never reached.

Link: https://lore.kernel.org/all/7587b503-b2ca-4476-8dc9-e9683d4ca5f0@suse.com/
Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Suggested-by: Jan Beulich <jbeulich@...e.com>
Signed-off-by: Ariel Otilibili <ariel.otilibili-anieli@...ecom.fr>
--
Cc: stable@...r.kernel.org
Cc: Andrew Morton <akpm@...ux-foundation.org>
Cc: linux-kernel@...r.kernel.org
Cc: Andrew Cooper <andrew.cooper3@...rix.com>
Cc: Anthony PERARD <anthony.perard@...es.tech>
Cc: Michal Orzel <michal.orzel@....com>
Cc: Julien Grall <julien@....org>
Cc: =?utf-8?q?Roger_Pau_Monn=C3=A9?= <roger.pau@...rix.com>
Cc: Stefano Stabellini <sstabellini@...nel.org>
Cc: xen-devel@...ts.xenproject.org
---
 lib/inflate.c | 2 --
 1 file changed, 2 deletions(-)

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;
-- 
2.47.1


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ