From patchwork Fri Jan 12 13:39:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5ZOy?= X-Patchwork-Id: 762438 Received: from m12.mail.163.com (m12.mail.163.com [220.181.12.215]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 81DD76D1A3; Fri, 12 Jan 2024 13:41:34 +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="YsYg7Hty" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id:MIME-Version; bh=W/DoE b9FwSanGKvU8HAUWKBed/QOzlqzNKFOJh+GK88=; b=YsYg7Hty959xJqrhZUNGk 94fEHSpiBbf1B/1qMnjM5UIEYximpWtik73ijJ5p8tCSC2MaEcNOQHDS+agBtWF8 wa7S3ZedB1+E0QJKRH33gPbvM89MYpWc85jNT7CzteKDP2zL9vCNeboKyzW8gcll OWQQzmtxq3zVdu9lFadoXM= Received: from localhost.localdomain (unknown [36.4.236.25]) by zwqz-smtp-mta-g3-0 (Coremail) with SMTP id _____wD3vyUMQaFlmw_AAw--.36249S4; Fri, 12 Jan 2024 21:39:56 +0800 (CST) From: Lizhe To: ilpo.jarvinen@linux.intel.com, gregkh@linuxfoundation.org, jirislaby@kernel.org, u.kleine-koenig@pengutronix.de, frank.li@vivo.com, tglx@linutronix.de, zhang_shurong@foxmail.com, robh@kernel.org Cc: linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, Lizhe Subject: [PATCH v10] serial: linflexuart: Remove redundant uart type assignment Date: Fri, 12 Jan 2024 05:39:23 -0800 Message-Id: <20240112133923.190852-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: _____wD3vyUMQaFlmw_AAw--.36249S4 X-Coremail-Antispam: 1Uf129KBjvdXoWrtw4rJF4kGF18Gr4ftw1UWrg_yoW3trb_CF nru347ur10kFWakFnrXFWYkrWSgws5ZF48ZF1vq3saq3yqvw4rXry0grZrW39rJ3yUZr97 ursrWr12yrsrXjkaLaAFLSUrUUUUjb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7sRNvtCUUUUUU== X-CM-SenderInfo: 5vhq20jurqiii6rwjhhfrp/xtbBXhdjq2VOA9DkXgABsC In linflex_config_port() the member variable type will be assigned again. Remove redundant uart type assignment from linflex_probe(). Signed-off-by: Lizhe --- v10: Move changelog below --- line. Correct commit message. --- 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;