Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1287066iob; Thu, 19 May 2022 03:32:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzdWsyIbcAOJdTHnk685wKqq9G3JIlV6ftkJXpypI8LglbyamSokoX+vhmJ3WfILu/HKeSc X-Received: by 2002:a17:907:728d:b0:6f4:5a83:a616 with SMTP id dt13-20020a170907728d00b006f45a83a616mr3589055ejc.297.1652956363620; Thu, 19 May 2022 03:32:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652956363; cv=none; d=google.com; s=arc-20160816; b=0T6FiUJFWU5FmXxcy8hQVs0+4E2W+H0XBsLot5+futAhqrzw0WrlGF+UqCymncYSTn G5dL4lY7SrlmYxBB9mKupx3ONqh18aGUaEiYXkZNe+wHZy4B/iRJEPMfZkGXjmwWngUP FJkQceSaOuOqV72IlIEBLNwsIuwPM3kNaQWEEKD1hwGzCoQGkz6htrik6XtT3oScUkqd sXjUs/Sf3cl51uUhxeqZgWNwnI1Sb8o0uyXDUTPE8c8XaKIC5kyGaquiIY5Jwoi0Txww +thIB1DX31d6EhxYPcvJvuK9DdIh/N8tjf++fTBF4uSoNo0mUafj6Ic0boq1uqIN4gf8 IqhA== 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=OvhlCqMgMMqPTQI307mBlnv9mUG/0UToOCB3paXTgc4=; b=Wz9DaHToZNAct5gk7/KeGov0fv0bmQAu9dUo7o23unLoTYs2HJle2Q4wtMQv/M46cF sCGlQ7N0V4NJeDGR1UMig2O8DRSOkVa/c+NL0W+93llNpP8gHFZoT/EiQw/FZygS2XEB EZ9/drqQ5g8RpcAxd6dUkA60TBmyLscQd8Hp3jZ25jFa49ha0RceDZ2nrEnZV8fL9utc IHyhs+hZWh7fBs7El5Ydx/8SrmVeW9MBO7oG+WkYcQHGFClbTzzj8iXYdG97n0Pqniv0 O1p3AV958NKsJ5C4416Bvgw0fjsVux38JoWa2UUFkTjAI3XIBPrbXy2sj+rtdai5ZY5m Oo0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=A5BdEhVf; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=CNjTjRyl; 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 cw7-20020a170906478700b006f487cd3338si4846230ejc.517.2022.05.19.03.32.16; Thu, 19 May 2022 03:32:43 -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=A5BdEhVf; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=CNjTjRyl; 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 S233674AbiESH5G (ORCPT + 99 others); Thu, 19 May 2022 03:57:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232326AbiESH45 (ORCPT ); Thu, 19 May 2022 03:56:57 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D198637A14; Thu, 19 May 2022 00:56:55 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 4056A1F922; Thu, 19 May 2022 07:56:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1652947014; 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=OvhlCqMgMMqPTQI307mBlnv9mUG/0UToOCB3paXTgc4=; b=A5BdEhVfB5dRtt5UtguiegnKZWBUkRFEBn0Zi82HS+mOBDnGoGQfdE4721w4mShBo6IXba DWd2+M/jYePWQ07wAUepGGmi2/4FbJWIKytUPfvM23TouT5CcVEldPbfJkGGYz3WnuH+Ci sViIxJIgxpLVgUOTo0DL8kVU2HWzRtI= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1652947014; 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=OvhlCqMgMMqPTQI307mBlnv9mUG/0UToOCB3paXTgc4=; b=CNjTjRylL0oWvo/aunp938eQMv/Q7WYjEOWvjo7bHIQbJdG7t7TMXz+wNKLEov8GWF9Vya COuJxTVz0zB5MQCw== Received: from localhost.localdomain (unknown [10.100.201.122]) (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 04D5D2C142; Thu, 19 May 2022 07:56:53 +0000 (UTC) From: Jiri Slaby To: gregkh@linuxfoundation.org Cc: linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, Jiri Slaby , Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras Subject: [PATCH 2/4] serial: pmac_zilog: remove unused uart_pmac_port::termios_cache Date: Thu, 19 May 2022 09:56:51 +0200 Message-Id: <20220519075653.31356-2-jslaby@suse.cz> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220519075653.31356-1-jslaby@suse.cz> References: <20220519075653.31356-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 struct uart_pmac_port contains termios_cache. It is only written and never read. Remove it as it only occupies space. Cc: Michael Ellerman Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Signed-off-by: Jiri Slaby --- drivers/tty/serial/pmac_zilog.c | 2 -- drivers/tty/serial/pmac_zilog.h | 2 -- 2 files changed, 4 deletions(-) diff --git a/drivers/tty/serial/pmac_zilog.c b/drivers/tty/serial/pmac_zilog.c index 2953ff64a892..9a2150bf477a 100644 --- a/drivers/tty/serial/pmac_zilog.c +++ b/drivers/tty/serial/pmac_zilog.c @@ -1231,8 +1231,6 @@ static void __pmz_set_termios(struct uart_port *port, struct ktermios *termios, pmz_debug("pmz: set_termios()\n"); - memcpy(&uap->termios_cache, termios, sizeof(struct ktermios)); - /* XXX Check which revs of machines actually allow 1 and 4Mb speeds * on the IR dongle. Note that the IRTTY driver currently doesn't know * about the FIR mode and high speed modes. So these are unused. For diff --git a/drivers/tty/serial/pmac_zilog.h b/drivers/tty/serial/pmac_zilog.h index 87337b748d6d..837b97ca0a90 100644 --- a/drivers/tty/serial/pmac_zilog.h +++ b/drivers/tty/serial/pmac_zilog.h @@ -55,8 +55,6 @@ struct uart_pmac_port { volatile u8 __iomem *data_reg; unsigned char irq_name[8]; - - struct ktermios termios_cache; }; #define to_pmz(p) ((struct uart_pmac_port *)(p)) -- 2.36.1