Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp484184iob; Tue, 3 May 2022 03:03:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzG+uVQhq9WXENFZI7f+MVJfkj+5Ug3CT5cJdzG1ld9kLjcY3BwVD39/p1wPgUhdVhr9DaA X-Received: by 2002:a17:902:7247:b0:156:9d3d:756d with SMTP id c7-20020a170902724700b001569d3d756dmr16150323pll.6.1651572211855; Tue, 03 May 2022 03:03:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651572211; cv=none; d=google.com; s=arc-20160816; b=V2R0VacRGMF0dfRxXBnMXcbLVlki7tlIf5u/z1y8mFFVG1Y0Zml98uZ80G+3CZmSSK HLbGKGSvwIunPS9UW724/crZ6FM4/rnWtb0+4RwVUeXEtEuSUloK4HSVwU/Ket1B67XL AQk9OItuxj7UchMF7Y+96j/NOr0Jy+ViHV9r28SuFK57Us0HOyAfpwfQ3IrkkQVd1PiT V+Cbe+ATP97FrRuLafIscHjGHI2jg2Xu4wbAh8LYexTvdgcmHhFfQl5O9AIuV4rz2G6l kHnn5Fva6cWE7BMOoHC5oG3MavioQZFJLsVvjYvJktcYck+Seair+15ZeSjDXm/8hTo4 V/Og== 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:dkim-signature; bh=15tooGNI+BBIugcRnBOXnwdLyWnVLkW9CS3+fD7edxg=; b=UTVlPKw9v6pQxZxJWcFoGs+FKmuAUVypxYVt/7aXubrqcn2CLgmysHQSFMrTqp6GgO J9+Yo+vyqPNkK7VOZyGlaxoXvAf1cVS0wDPqFSDz6zBCzRZF2tXx+TQtpZHgsvtHK6hK IxQDnPxHgiP4RI5ZbjWs6HFDwb3OdqOiVqrvZWe10YjGkEc1yK8/zFUyG29USCYboCY+ K+Lw/XUaycTkAnfJZAjZAQuapdDK3ceGX9oMa9WSdtoXBOvbSSx+HCuXEwIPh/JNjWtK qnxgbXNonD7/XlGcmMtRYDkXWEHPXlPgiNoqT+4hyTqfIKQtv0gIm1IvKjY94o2SFm4M WZhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=FvKTjqXn; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=7Or1Z0e7; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p19-20020a170902e35300b0015d241fa42dsi14445786plc.72.2022.05.03.03.03.16; Tue, 03 May 2022 03:03:31 -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=@suse.cz header.s=susede2_rsa header.b=FvKTjqXn; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=7Or1Z0e7; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232679AbiECIMA (ORCPT + 99 others); Tue, 3 May 2022 04:12:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231915AbiECILm (ORCPT ); Tue, 3 May 2022 04:11:42 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9054020F6D; Tue, 3 May 2022 01:08:11 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 4FA781F74A; Tue, 3 May 2022 08:08:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1651565290; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=15tooGNI+BBIugcRnBOXnwdLyWnVLkW9CS3+fD7edxg=; b=FvKTjqXnjeH0EkWFVpvCZ26JsNjCWPWdv/uCfXBvo30wDiNk1yl3Zg0JEbC19QjD4piKyK IsObjth+vP1w5nKV93UVW71k9Y48kuNgDXLTBbtGirzB2VEs0ILCJTzcsPYVy7TD1EMdm1 WtkOGtlXZuhQj6KQ/m5+jjHki2MsTSM= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1651565290; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=15tooGNI+BBIugcRnBOXnwdLyWnVLkW9CS3+fD7edxg=; b=7Or1Z0e76JolPn02tdG223lguF4BEGNkBsRQ5Mv8sPnOCkTT4pIU8lMFzBMqv3hgcJBCNF ldQwshMv1LuFqvAg== Received: from localhost.localdomain (unknown [10.100.208.98]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id 1C79C2C142; Tue, 3 May 2022 08:08:10 +0000 (UTC) From: Jiri Slaby To: gregkh@linuxfoundation.org Cc: linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, Jiri Slaby Subject: [PATCH 4/7] serial: pch: remove debug print from pop_tx Date: Tue, 3 May 2022 10:08:05 +0200 Message-Id: <20220503080808.28332-3-jslaby@suse.cz> X-Mailer: git-send-email 2.36.0 In-Reply-To: <20220503080808.28332-1-jslaby@suse.cz> References: <20220503080613.27601-1-jslaby@suse.cz> <20220503080808.28332-1-jslaby@suse.cz> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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 It makes the code overly complicated for no good reason. Signed-off-by: Jiri Slaby --- drivers/tty/serial/pch_uart.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/tty/serial/pch_uart.c b/drivers/tty/serial/pch_uart.c index 4fcb6c144b54..a90bdff60908 100644 --- a/drivers/tty/serial/pch_uart.c +++ b/drivers/tty/serial/pch_uart.c @@ -764,7 +764,7 @@ static bool pop_tx(struct eg20t_port *priv, unsigned int size) struct circ_buf *xmit = &port->state->xmit; if (uart_tx_stopped(port)) - goto pop_tx_end; + return false; while (!uart_circ_empty(xmit) && count < size) { iowrite8(xmit->buf[xmit->tail], priv->membase + PCH_UART_THR); @@ -773,10 +773,6 @@ static bool pop_tx(struct eg20t_port *priv, unsigned int size) count++; } -pop_tx_end: - dev_dbg(priv->port.dev, "%d characters. Remained %d characters.(%lu)\n", - count, size - count, jiffies); - return count; } -- 2.36.0