Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp3592744pxb; Tue, 19 Apr 2022 06:12:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzxVSfqpI+LUCZOW5FSWgixDT3YPVHLJsPPjOBtC4E3mULY5cwRgyTucNZCkHmQ1SY8eyFc X-Received: by 2002:a05:6402:1247:b0:41d:7932:30d with SMTP id l7-20020a056402124700b0041d7932030dmr17730317edw.2.1650373930118; Tue, 19 Apr 2022 06:12:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650373930; cv=none; d=google.com; s=arc-20160816; b=rA7nsPyxH/FP0EU8OJ8B+KijLeBvEHoXk6eaPZmeZIEnbjbc2/CZa3/DjIfV9VZhyW cDL9UHmpYaPWT83eDc6Awa6dbRaagyIgSLUUXwdzeUI6Nh0gZhqKpH6Up4dFhKqsiqpM 1a8MdCHuyksSZbTzGsBJb+jBujrMQYD7SUFODq6Rj1VEQ+5jI+1OkG+kDMTn3dyCe5oO PkJpd2NEaPaLRauY7SWBd3x2vx33TNwaRlhFvPFZQvboAibW/Im89YJGCDeML9vJ3Fzs kkyfLd8qfPJu7uICw0rMRd5e78bXh5qm4vrwcIDgBWaerNTT/Lu+NPpd206EIipquMvW WkfQ== 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=WEBaAnLNU2+Mj++ZJXNOKrBfTV4ItKWCiZtMh+pt86A=; b=o2rLebOGPd0EN5igcC1n7xH3ImBcE7ekNhn3Xz06Im7W4JoWi5WMTXTWMOH9VkdspW 6iuFBTBN/ZxefgRrLLQdnx7fsCyd2ISSPZDmAL7b15WR5U1OwB+3mYD3nNwtLz/Y258U iyE7Q0Sbh0f3zyEQB/ZS3Wl0sbU+6LJt0+MV51HSjFNMLKdE4HAXquOMLL0QNLDzehiK dYJXRxMOZfZZoTcvIQNHe6+dA0/5lywzP8/0O93AVFFQfwkH165soVG1+n6kXZiHbc7Z 3699jGs1+hzBLniN4QO/Loqlhm6kp5hLoRYBX+LgQILW7/ILHwisbXu6U1C5M59Rs5Rq W82w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=VAmhMTHe; 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 eb7-20020a0564020d0700b0042280e86243si9355440edb.414.2022.04.19.06.11.44; Tue, 19 Apr 2022 06:12:10 -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=VAmhMTHe; 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 S1349866AbiDSIVM (ORCPT + 99 others); Tue, 19 Apr 2022 04:21:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349854AbiDSIVL (ORCPT ); Tue, 19 Apr 2022 04:21:11 -0400 X-Greylist: delayed 62 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 19 Apr 2022 01:18:24 PDT Received: from mta-65-226.siemens.flowmailer.net (mta-65-226.siemens.flowmailer.net [185.136.65.226]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B0C6ADF2F for ; Tue, 19 Apr 2022 01:18:24 -0700 (PDT) Received: by mta-65-226.siemens.flowmailer.net with ESMTPSA id 202204190817202e274e245fbce4aa64 for ; Tue, 19 Apr 2022 10:17:20 +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=WEBaAnLNU2+Mj++ZJXNOKrBfTV4ItKWCiZtMh+pt86A=; b=VAmhMTHeikbWPhYF/T2fJmdlwfV7lIcfC/9mIxB+fTGd9PjMD7enVVfAa4X4jMIFYSrb9+ H5Bu93fLMJO6TDiXGFeZMSdSh9t3dHpq9y9184Q+h8XAPTKIznMcH3wXLzOUENYm1Vdd34hu lbWqXUbxO1W9ESizQPilNZiDOZMZo=; 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 v2 16/20] tty: n_gsm: clean up dead code in gsm_queue() Date: Tue, 19 Apr 2022 01:17:13 -0700 Message-Id: <20220419081713.5813-1-daniel.starke@siemens.com> In-Reply-To: References: 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_H5, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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(-) 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