Received: by 2002:a05:7412:bb8d:b0:d7:7d3a:4fe2 with SMTP id js13csp1357251rdb; Wed, 16 Aug 2023 09:08:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH0imgG3k3ZrkmvWl3AvZ7dp5ggU2xQY1FVohoTuNufC6f5kk5pfuPgA8N18agssCpqijR8 X-Received: by 2002:a17:902:e84c:b0:1b8:a569:f980 with SMTP id t12-20020a170902e84c00b001b8a569f980mr3063084plg.65.1692202127585; Wed, 16 Aug 2023 09:08:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692202127; cv=none; d=google.com; s=arc-20160816; b=Ys9z2CbDzXvRQ3Yng/W1iR9Tvi8FeHlEVB3iA2LRdaoWUeRttlbZnM3JaTmByqlyBW 42LYtG741HZg7tqWEVHQkSRHPSgv+E9WlKqxAEp7CMfgZwGDipODGiObjNk01fCbausM BOc6d7u4sQatpuxP5tgZbLFqqUkyQaXAh76f2mpqMEj82j5YNzLS7em8YTUbes9KnyFB GM9SQZ90KmeRPA2Umfp5f9VTvFB8BVt19yKbXGOxBHif/sHMorwS3AsI28NGN9fmJlXS Su44b6MBWmzCFYbtknwYUj/d/qB/DFp+W8X7e+cBresWVm71xdIT2oOti3tzAHVeQ/m0 jt5g== 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 :dkim-signature; bh=y1TakpDgNfMdyGuOhnxPuQdbLAXDTWnMmupVvH+W7SM=; fh=k7XzfpyqnKqnwxpqVF0NftrWa2FIpeAcHVbykF5xarA=; b=EAhQXH6shsm6OEFqCbpgtm/ubXvwKjxnA6LcughXMgY5Rn8jN2dB2AeQaDr6pOJFs+ fOK6IzJcVVATficrw+SKY+nFcxagygb0qwbQkpeB3xmlIz2KTeHq1JLiqUOHA0HdWUhb l48zXIM8wHQo3gFhfG861uoeY4m0GoGMw2HKBzC1sY0WdTghCXJRB/AIotRdzbFGljU5 8mIN+jHtjlSGPGXtTjOBBe/11xrX6XbpZDXrkb4pbr4FFWakt8ZfUom4WqoH20CijLuN DxGsntmEvnCmM14t1SodNwMWkar2JhP7WL6SHGl9hdDWO3Q58bQ8oYOubyGdkNCcLeTy ez7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PVCFNLPo; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s10-20020a170902ea0a00b001b9e38b8167si8839687plg.169.2023.08.16.09.08.27; Wed, 16 Aug 2023 09:08:47 -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=@kernel.org header.s=k20201202 header.b=PVCFNLPo; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244080AbjHPK7v (ORCPT + 99 others); Wed, 16 Aug 2023 06:59:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58136 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244375AbjHPK7l (ORCPT ); Wed, 16 Aug 2023 06:59:41 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 969002D6B; Wed, 16 Aug 2023 03:59:12 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B6B3A6658C; Wed, 16 Aug 2023 10:58:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1D0BFC433C9; Wed, 16 Aug 2023 10:58:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1692183507; bh=4M+311SCFHjZNmmXmuQ/Cv4yRF1MEJ3AD4kmj9Cg3lk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PVCFNLPov+BxKElL+WEweAvekMzsgVZVuehO78//6u4KJGclRdgkTwas8CstpYjaU 5EoZLkbzfs6KkbGnHWsLBlc0rLayV3Vj3ybynQGEZf6neTdMEOI30JpAM2pmEs1zOC 83e1l7YVl3FhtScIUoWf60zJzqFx3MNSK8gBlQIX5+0PKsPagL9Qn7PxFjGbDEtXdN yxK9+8LyPMgYt4io0Ry58xAcRJtXy+v8ypS5NkPUhPgeG4mXrRC/Zg8Hz5WsUNWYsI oyN6TiVhmZ2H2b10XFqJn7vgmPfvDK3futPsDZwhUZv62rZ9K53juVRV1rVfzPMFO+ PIovGvTkiqfZQ== From: "Jiri Slaby (SUSE)" To: gregkh@linuxfoundation.org Cc: linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, "Jiri Slaby (SUSE)" Subject: [PATCH 1/4] n_tty: drop fp from n_tty_receive_buf_real_raw() Date: Wed, 16 Aug 2023 12:58:05 +0200 Message-ID: <20230816105822.3685-2-jirislaby@kernel.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230816105822.3685-1-jirislaby@kernel.org> References: <20230816105822.3685-1-jirislaby@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 The 'fp' parameter of n_tty_receive_buf_real_raw() is unused, so drop it. Signed-off-by: Jiri Slaby (SUSE) --- drivers/tty/n_tty.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/tty/n_tty.c b/drivers/tty/n_tty.c index 552e8a741562..1599012f20c8 100644 --- a/drivers/tty/n_tty.c +++ b/drivers/tty/n_tty.c @@ -1502,7 +1502,7 @@ static void n_tty_lookahead_flow_ctrl(struct tty_struct *tty, const unsigned cha static void n_tty_receive_buf_real_raw(struct tty_struct *tty, const unsigned char *cp, - const char *fp, int count) + int count) { struct n_tty_data *ldata = tty->disc_data; size_t n, head; @@ -1597,7 +1597,7 @@ static void __receive_buf(struct tty_struct *tty, const unsigned char *cp, size_t la_count = min_t(size_t, ldata->lookahead_count, count); if (ldata->real_raw) - n_tty_receive_buf_real_raw(tty, cp, fp, count); + n_tty_receive_buf_real_raw(tty, cp, count); else if (ldata->raw || (L_EXTPROC(tty) && !preops)) n_tty_receive_buf_raw(tty, cp, fp, count); else if (tty->closing && !L_EXTPROC(tty)) { -- 2.41.0