From nobody Wed Feb 5 16:56:03 2025 Received: from smtp.eurecom.fr (smtp.eurecom.fr [193.55.113.210]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 253E51C9DF0; Thu, 19 Dec 2024 22:47:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.55.113.210 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734648440; cv=none; b=V/vt/2egi+PI/uwB67h2iQpH5zWVsiqsfbS+1MaTBwVXkdiY/KkSvxRUdrMGYc4vKVVSmozLLDE8FhlH+HwW4VxNafH4JwQbmRlOfr010HEy71m/RtDSGTTC2lMJ/kFTn7NOiTCAHFanFbJBCnO1m7RQVFS+TQrkmzW5yXYWmuA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734648440; c=relaxed/simple; bh=V8sVQh2GzpjQPMrZ4BpJcSrIaxPFuHtvHMLSHRGfOx4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=TrapsR0g5VNDQRlQpGr3GJYo5BwhwxXiqKfrtHiDIMRF/iyQjgs+xDNrI41oXQtie49WJpfZDxacNsjF+pCFIVJ/oTUF+Fg6LC/GCNehugm4Vi00qdlbnQeGeQgqf0VFkzHw4lct5N96wmlazWwvSDnxHgFhYn52XPsPRf72yRo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=eurecom.fr; spf=pass smtp.mailfrom=eurecom.fr; dkim=pass (1024-bit key) header.d=eurecom.fr header.i=@eurecom.fr header.b=P12w3cQT; arc=none smtp.client-ip=193.55.113.210 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=eurecom.fr Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=eurecom.fr Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=eurecom.fr header.i=@eurecom.fr header.b="P12w3cQT" DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=eurecom.fr; i=@eurecom.fr; q=dns/txt; s=default; t=1734648437; x=1766184437; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=V8sVQh2GzpjQPMrZ4BpJcSrIaxPFuHtvHMLSHRGfOx4=; b=P12w3cQTl3aFoT/+LtyrpaIE1Z+y5FGjP8NvXAuBpSLVHq/AIUjuZWXi BDAzgAZtQc3unuX1ozlrKUEVKWaUuC4mocJpY7lsGszB+x422FXq38nNE rROF2mPsxsSkht+yPlBSGWyruMBgldi7LWIkr7LWmuo9KIIARv7xGSz1l E=; X-CSE-ConnectionGUID: tVhKrNPLRYGLnSmy3ws9Xw== X-CSE-MsgGUID: oAtabZZKTP+dUb54DWNQuA== X-IronPort-AV: E=Sophos;i="6.12,248,1728943200"; d="scan'208";a="28263088" Received: from waha.eurecom.fr (HELO smtps.eurecom.fr) ([10.3.2.236]) by drago1i.eurecom.fr with ESMTP; 19 Dec 2024 23:47:15 +0100 Received: from localhost.localdomain (88-183-119-157.subs.proxad.net [88.183.119.157]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtps.eurecom.fr (Postfix) with ESMTPSA id C93A12398; Thu, 19 Dec 2024 23:47:14 +0100 (CET) From: Ariel Otilibili To: linux-kernel@vger.kernel.org Cc: Ariel Otilibili , Jan Beulich , stable@vger.kernel.org, Andrew Morton , Andrew Cooper , Anthony PERARD , Michal Orzel , Julien Grall , =?utf-8?q?Roger_Pau_Monn=C3=A9?= , Stefano Stabellini , xen-devel@lists.xenproject.org Subject: [PATCH v2 1/1] lib: Remove dead code Date: Thu, 19 Dec 2024 23:45:01 +0100 Message-ID: <20241219224645.749233-2-ariel.otilibili-anieli@eurecom.fr> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20241219224645.749233-1-ariel.otilibili-anieli@eurecom.fr> References: <20241219092615.644642-1-ariel.otilibili-anieli@eurecom.fr> <20241219224645.749233-1-ariel.otilibili-anieli@eurecom.fr> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This is a follow up from a discussion in Xen: The if-statement tests `res` is non-zero; meaning the case zero is never re= ached. Link: https://lore.kernel.org/all/7587b503-b2ca-4476-8dc9-e9683d4ca5f0@suse= .com/ Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Suggested-by: Jan Beulich Signed-off-by: Ariel Otilibili -- Cc: stable@vger.kernel.org Cc: Andrew Morton Cc: linux-kernel@vger.kernel.org Cc: Andrew Cooper Cc: Anthony PERARD Cc: Michal Orzel Cc: Julien Grall Cc: =3D?utf-8?q?Roger_Pau_Monn=3DC3=3DA9?=3D Cc: Stefano Stabellini Cc: xen-devel@lists.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 =3D inflate())) { switch (res) { - case 0: - break; case 1: error("invalid compressed format (err=3D1)"); break; --=20 2.47.1