From patchwork Thu Dec 19 22:45:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ariel Otilibili-Anieli X-Patchwork-Id: 13915914 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7278BE77184 for ; Thu, 19 Dec 2024 22:47:27 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.861511.1273486 (Exim 4.92) (envelope-from ) id 1tOPIb-0007f0-Sm; Thu, 19 Dec 2024 22:47:17 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 861511.1273486; Thu, 19 Dec 2024 22:47:17 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tOPIb-0007et-QC; Thu, 19 Dec 2024 22:47:17 +0000 Received: by outflank-mailman (input) for mailman id 861511; Thu, 19 Dec 2024 22:47:16 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tOPIa-0007QC-U0 for xen-devel@lists.xenproject.org; Thu, 19 Dec 2024 22:47:16 +0000 Received: from smtp.eurecom.fr (smtp.eurecom.fr [193.55.113.210]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 317a875e-be5b-11ef-99a3-01e77a169b0f; Thu, 19 Dec 2024 23:47:15 +0100 (CET) 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) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 317a875e-be5b-11ef-99a3-01e77a169b0f DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=eurecom.fr; i=@eurecom.fr; q=dns/txt; s=default; t=1734648435; x=1766184435; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=V8sVQh2GzpjQPMrZ4BpJcSrIaxPFuHtvHMLSHRGfOx4=; b=lKeNSTDbklN+wt7z+1X1p0KSPxWiQQ0znsVtDNe/MV1TPhopYAtGw1Q5 VlnFmm17EVRujatLXjr+iX9fSQTynTg+LcMr/MASkftNUNj6XHInP2Nky sw3KmHlEmVFv4VgoqIf0Zh8kM3n4S6KXvV4+fhmphu/lyWJ22b4sseEDm g=; X-CSE-ConnectionGUID: tVhKrNPLRYGLnSmy3ws9Xw== X-CSE-MsgGUID: oAtabZZKTP+dUb54DWNQuA== X-IronPort-AV: E=Sophos;i="6.12,248,1728943200"; d="scan'208";a="28263088" 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> MIME-Version: 1.0 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 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: =?utf-8?q?Roger_Pau_Monn=C3=A9?= 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 = inflate())) { switch (res) { - case 0: - break; case 1: error("invalid compressed format (err=1)"); break;