Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp253007pxb; Wed, 20 Apr 2022 21:48:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzAlpbc3QbCRGbXTIUIDaM6OerRxw29xAMyk1Vg1zjRdD9KcqQMtgmOp2i9cecqT8G4pxqe X-Received: by 2002:a17:90b:3847:b0:1d1:16bb:83ba with SMTP id nl7-20020a17090b384700b001d116bb83bamr8388125pjb.216.1650516537224; Wed, 20 Apr 2022 21:48:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650516537; cv=none; d=google.com; s=arc-20160816; b=cO9DlfgiOjeEgsZN8F4vPJ966an62o7IWAAOILStPvzGxIVLa8Yi4NKi+LwDvb9UOK R1AD6QYfd17QkQZUHy/SxgPLEh1JgSP1yQ3GyQHWK+NykkeSisDvgwYExRto72rfZdBX 7CHyB3XnxJAKjeUuXVoMNjwxt5++fRlrUgonCPk2a1MkZvfJ2GHRvhYTmbBbSxITq/T2 1M4HvuQllbUbUhmkADf8Zv+XpkaXQV7C8xcw3I/z25fWBZrUfIdZy7WZmyH0zflWHakI BMzZI6s+44S/+EoBEv5joF+x/UiJbuJ2/vXWW9CNG4+G8RV32dUbaCLeZ2Hx/o7YF15u mrVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=w+mbL/67Hch5JUwEcTboXqb1l8rminXIVsrzq7Luffo=; b=Fu7hkliWXhROALpq3Q7Uvp0/B2dc3JKWRubOeqAKinxNGkOM5XjW5uUiKqcu+BLzKu 5T6N/T6zlyXdWut8bef7r6SIwzbelXXclQRfZ/f7tS8i5KmqAKtAWfFBeZ25sNnVz00L Y+86CEFCoLV8W6wzBYqhSUi+L685Q8Kjxsy5A01k7uJeGBxUnwnX8BZA9rPj52nd0lb6 fWYLqcE/bj5ffUuvEgPr6Az0CbDyf5jcAzdBOH9YDRukPvb7QIituen/JlAtX9vUv8Fb ALsQv7WasmSAV8NifouC20UCRW0sXpU+MQuMBJLawWJpw+tzIS+OZl8BrNPuVEBH+hug qAAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=Krsx5rnR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w16-20020a63af10000000b00386275ee890si4835018pge.343.2022.04.20.21.48.40; Wed, 20 Apr 2022 21:48:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=Krsx5rnR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377563AbiDTKSJ (ORCPT + 99 others); Wed, 20 Apr 2022 06:18:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48604 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377526AbiDTKRx (ORCPT ); Wed, 20 Apr 2022 06:17:53 -0400 X-Greylist: delayed 62 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Wed, 20 Apr 2022 03:15:06 PDT Received: from mta-64-228.siemens.flowmailer.net (mta-64-228.siemens.flowmailer.net [185.136.64.228]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 073795FAC for ; Wed, 20 Apr 2022 03:15:05 -0700 (PDT) Received: by mta-64-228.siemens.flowmailer.net with ESMTPSA id 2022042010140175f691674f7a4a6724 for ; Wed, 20 Apr 2022 12:14:01 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=fm1; d=siemens.com; i=daniel.starke@siemens.com; h=Date:From:Subject:To:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:Cc:References:In-Reply-To; bh=w+mbL/67Hch5JUwEcTboXqb1l8rminXIVsrzq7Luffo=; b=Krsx5rnRuD4AR43fkbyB1prXGvQAjNyAVzM+oGDcml/1YXLY0bMF3Hh7NyRCuRSdxObq/G BNbJBngBQxCXbCQbfFotYkXk83isu4h3UqosezrfPuJpTBXOE+BmGI+O2fz2nifVqlHlSU1n 1SkHcDw+IzRea+yZhwX1D1+jO7tHI=; From: "D. Starke" To: linux-serial@vger.kernel.org, gregkh@linuxfoundation.org, jirislaby@kernel.org Cc: linux-kernel@vger.kernel.org, Daniel Starke Subject: [PATCH v3 2/3] tty: n_gsm: clean up dead code in gsm_queue() Date: Wed, 20 Apr 2022 03:13:45 -0700 Message-Id: <20220420101346.3315-2-daniel.starke@siemens.com> In-Reply-To: <20220420101346.3315-1-daniel.starke@siemens.com> References: <20220420101346.3315-1-daniel.starke@siemens.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-314044:519-21489:flowmailer X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Daniel Starke Remove commented out code as it is never used and if anyone accidentally turned it on, it would be broken. Signed-off-by: Daniel Starke --- drivers/tty/n_gsm.c | 4 ---- 1 file changed, 4 deletions(-) The commit title and message was adjusted as recommended in the remarks for the original patch. This is only a cleanup now and not a fix. The remark for backporting was also removed. The code change remains as it was originally. This is version 3 of the patch because the second version was missing the change remarks. Link: https://lore.kernel.org/all/YlkRO6fAPCuWyT1Y@kroah.com/ diff --git a/drivers/tty/n_gsm.c b/drivers/tty/n_gsm.c index 07d03447cdfd..1b4077006744 100644 --- a/drivers/tty/n_gsm.c +++ b/drivers/tty/n_gsm.c @@ -1894,10 +1894,6 @@ static void gsm_queue(struct gsm_mux *gsm) case UI|PF: case UIH: case UIH|PF: -#if 0 - if (cr) - goto invalid; -#endif if (dlci == NULL || dlci->state != DLCI_OPEN) { gsm_command(gsm, address, DM|PF); return; -- 2.25.1