Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp329617pxy; Wed, 5 May 2021 03:22:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzj30bZ/nNU5TYRf0FKyX/07q4IRx9U6R6DVE/xjn2+zZrpduo/6CgJ4KsIJjPndpM2v9II X-Received: by 2002:a17:906:6544:: with SMTP id u4mr26586851ejn.455.1620210121953; Wed, 05 May 2021 03:22:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620210121; cv=none; d=google.com; s=arc-20160816; b=dcZOd490kC+uGYr5/ju7o2+dXnc89oPFjdBVNtZoDgXZB+epGdaKxjjsA+BaHfhRGY WKIsax2zPWKTBvweTRgCoko2PiHTAGPJO84v+702bC7nC45WQ1dfOTFfFhTDDsPCgq6y pRM0VepVnR0k8/FSRSIy0DOfyzuQxNb4W56/72THwfHzDVsnMkuYhyrHgk0G0kpUBH5k 7L3BBxq1CGqI7HsPZnORc4+MMvEnJUDZMm+qbifcvn8Ai2UUaFNzUF2GJtg0K62BldLH biVVg1CWvei/Qi87E4slZDNLiyLQbpD2uxQsfEpRoa6IEFUHoQOhhxSfCcnh7xR+E5ih HDQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=HbVZeHM82WW//9EiaYwVGEmsmS0MDgXp/4IPZLfhOWo=; b=nHlaK3LHYzvucAX9hsf2o++ObdisbrW8XRSoGNLJmAWXhbDiYNJ56GuGbZ1D62o26X DBhmi+1EFNHRInPfQ8y8asICHguSS9kKypvXgeUflVoRTDwDuq/6s1vMXtjnam4Yt8ZE 1pjycDXdYcDbxgcufNGYtdV0FW+mpTAtTuqxcg6SFWZ6/q5a/uPL1N9LpXY5B3rgLLpy fY97iIUCJBxNhbSZtGLmh51ZvHnceaVd6iWG8Myz8FhfxK10rKGZmDyfHz6V3chU1hiV Q+FyhUFuyMWF8xAaO2sBe2NGUlNv+q6bbwdB5QPF+qpVN9PSRuKzpB5PimvzY/9bzfSu K7rA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bw19si5172670ejb.85.2021.05.05.03.21.37; Wed, 05 May 2021 03:22:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232541AbhEEJUl (ORCPT + 99 others); Wed, 5 May 2021 05:20:41 -0400 Received: from mx2.suse.de ([195.135.220.15]:41350 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232335AbhEEJU2 (ORCPT ); Wed, 5 May 2021 05:20:28 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 81D03B260; Wed, 5 May 2021 09:19:30 +0000 (UTC) From: Jiri Slaby To: gregkh@linuxfoundation.org Cc: linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, Jiri Slaby Subject: [PATCH 05/35] n_tty: drop parmrk_dbl from n_tty_receive_char Date: Wed, 5 May 2021 11:18:58 +0200 Message-Id: <20210505091928.22010-6-jslaby@suse.cz> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210505091928.22010-1-jslaby@suse.cz> References: <20210505091928.22010-1-jslaby@suse.cz> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org After the previous cleanup patches, parmrk_dbl parameter is always true -- I_PARMRK is checked only in n_tty_receive_char now. So remove parmrk_dbl completely. Signed-off-by: Jiri Slaby --- drivers/tty/n_tty.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/tty/n_tty.c b/drivers/tty/n_tty.c index 5d83fb5412fd..f0db3f41df83 100644 --- a/drivers/tty/n_tty.c +++ b/drivers/tty/n_tty.c @@ -1400,8 +1400,7 @@ n_tty_receive_char_special(struct tty_struct *tty, unsigned char c) return 0; } -static void n_tty_receive_char(struct tty_struct *tty, unsigned char c, - bool parmrk_dbl) +static void n_tty_receive_char(struct tty_struct *tty, unsigned char c) { struct n_tty_data *ldata = tty->disc_data; @@ -1418,7 +1417,7 @@ static void n_tty_receive_char(struct tty_struct *tty, unsigned char c, commit_echoes(tty); } /* PARMRK doubling check */ - if (parmrk_dbl && c == (unsigned char) '\377' && I_PARMRK(tty)) + if (c == (unsigned char) '\377' && I_PARMRK(tty)) put_tty_queue(c, ldata); put_tty_queue(c, ldata); } @@ -1474,7 +1473,7 @@ n_tty_receive_char_lnext(struct tty_struct *tty, unsigned char c, char flag) c &= 0x7f; if (I_IUCLC(tty) && L_IEXTEN(tty)) c = tolower(c); - n_tty_receive_char(tty, c, true); + n_tty_receive_char(tty, c); } else n_tty_receive_char_flagged(tty, c, flag); } @@ -1551,7 +1550,7 @@ static void n_tty_receive_buf_standard(struct tty_struct *tty, continue; } if (!test_bit(c, ldata->char_map)) - n_tty_receive_char(tty, c, true); + n_tty_receive_char(tty, c); else if (n_tty_receive_char_special(tty, c) && count) { if (fp) flag = *fp++; -- 2.31.1