From patchwork Tue Jan 9 04:34:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lizhe X-Patchwork-Id: 761735 Received: from m12.mail.163.com (m12.mail.163.com [220.181.12.214]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5C6ED631; Tue, 9 Jan 2024 04:37:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=163.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=163.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=163.com header.i=@163.com header.b="f/lME9AY" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id:MIME-Version; bh=1ad9S /a41A/LWp7yf1wRRo/sXfgTHOJJT+GW2z8tQnc=; b=f/lME9AY8QI34XICOeuMK iwXotmKIBoMS0H/UBTsms8PlfBXrJTjcRz3J975yCiWUp7a75G4xtTFz9fn0LUTH N/D2HrIBmKChsbfoHHKro9hO0b1K8kl/0k9GgeCzUk3sxz+kzYkI71cxLPrUhCOz 5jQb4cv5v9Lo8+05d+yrcA= Received: from localhost.localdomain (unknown [114.105.142.232]) by zwqz-smtp-mta-g4-2 (Coremail) with SMTP id _____wDnt4zUzJxl+6msAg--.14805S4; Tue, 09 Jan 2024 12:35:14 +0800 (CST) From: Lizhe To: ilpo.jarvinen@linux.intel.com, gregkh@linuxfoundation.org, jirislaby@kernel.org, u.kleine-koenig@pengutronix.de, robh@kernel.org, john.ogness@linutronix.de, tglx@linutronix.de, frank.li@vivo.com, zhang_shurong@foxmail.com Cc: linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, Lizhe Subject: [PATCH v7] serial: linflexuart: Remove redundant uart type assignment Date: Mon, 8 Jan 2024 20:34:26 -0800 Message-Id: <20240109043426.3756-1-sensor1010@163.com> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-serial@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-CM-TRANSID: _____wDnt4zUzJxl+6msAg--.14805S4 X-Coremail-Antispam: 1Uf129KBjvdXoWrtw4rAw13Wr13Jw43Cr1kAFb_yoWxKwb_uF 1DC347ur10kFWakFnrXFWYkrySganYvF48ZF10q3saq3yDZw4rXryIqrZru39rG3yUZrZr WwsrWr12yrsrXjkaLaAFLSUrUUUUjb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7sRNvtCUUUUUU== X-CM-SenderInfo: 5vhq20jurqiii6rwjhhfrp/1tbiWANfq2VOA4+1OwACsE in linflex_config_port() the member variable type will be assigned again. see linflex_connfig_port() Signed-off-by: Lizhe --- drivers/tty/serial/fsl_linflexuart.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/tty/serial/fsl_linflexuart.c b/drivers/tty/serial/fsl_linflexuart.c index 3bdaf1ddc309..c5a04a168c15 100644 --- a/drivers/tty/serial/fsl_linflexuart.c +++ b/drivers/tty/serial/fsl_linflexuart.c @@ -837,7 +837,6 @@ static int linflex_probe(struct platform_device *pdev) return ret; sport->dev = &pdev->dev; - sport->type = PORT_LINFLEXUART; sport->iotype = UPIO_MEM; sport->irq = ret; sport->ops = &linflex_pops;