From patchwork Thu Jan 5 17:04:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?5p2O5ZOy?= X-Patchwork-Id: 639660 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E42D9C3DA7A for ; Thu, 5 Jan 2023 17:27:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235280AbjAER1W (ORCPT ); Thu, 5 Jan 2023 12:27:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235304AbjAER0y (ORCPT ); Thu, 5 Jan 2023 12:26:54 -0500 Received: from m12.mail.163.com (m12.mail.163.com [220.181.12.216]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1443B59FBA; Thu, 5 Jan 2023 09:22:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id:MIME-Version: Content-Type; bh=dlNwiQpR74Fn2RarO3rtu77WVKud4F1n99IzYmKFdKA=; b=o5btCxmc4B/U2EIk6H+cScBBlpe5JEA1m4+Sd+DPEaJ8Ve40R51KaYcWE0XaKZ YnXVX/ZVc6ZDzuyODMxfGfswUaEBFdXgMCNsksoPrSNfvCTnCFWg0iGvuLAA0WDA tcjqvHOUnu8sezC1qtRPWnf/NoyoJNG7lsvKYwuTY9kSE= Received: from localhost.localdomain (unknown [36.4.211.162]) by zwqz-smtp-mta-g4-2 (Coremail) with SMTP id _____wD3JeYnA7djV+t6AA--.2998S4; Fri, 06 Jan 2023 01:05:12 +0800 (CST) From: =?utf-8?b?5p2O5ZOy?= To: gregkh@linuxfoundation.org, jirislaby@kernel.org, ilpo.jarvinen@linux.intel.com Cc: linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, =?utf-8?b?5p2O5ZOy?= Subject: [PATCH v6] serial: linflexuart: Remove redundant uart type assignment Date: Thu, 5 Jan 2023 09:04:37 -0800 Message-Id: <20230105170437.4437-1-sensor1010@163.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-CM-TRANSID: _____wD3JeYnA7djV+t6AA--.2998S4 X-Coremail-Antispam: 1Uf129KBjvdXoWrtw4rZrWxur15KFy8KryxGrg_yoWkKFg_CF nrA343Wr1kArW3Kr1xJFyakr9agrWFvFn5tF10vF9agws8Aw4fJryfKrW3ZwnxXw48ZrWU Wa13GrnFvrs8XjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7xREzuWtUUUUU== X-Originating-IP: [36.4.211.162] X-CM-SenderInfo: 5vhq20jurqiii6rwjhhfrp/1tbiSA-tq1+Fgod7bAAAsJ Precedence: bulk List-ID: X-Mailing-List: linux-serial@vger.kernel.org in linflex_config_port() the member variable type will be assigned again. see linflex_connfig_port() Signed-off-by: 李哲 V4 -> V5: Link: https://lore.kernel.org/all/ddcf396b-7b91-00f3-8c16-7de5dc891aef@kernel.org/ V3 -> V4: Link: https://lore.kernel.org/all/2f726128-29c-b7dd-ad8-f8b536fbe5f@linux.intel.com/ V2 -> V3: Link: https://lore.kernel.org/all/8f433e5-fb46-d3b8-431b-4bddcc938f6b@linux.intel.com/ V1 -> V2: Link: https://lore.kernel.org/all/1c33a2af-cd0d-cdde-5bc7-49b418665784@kernel.org/ --- 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 6fc21b6684e6..34400cc6ac7f 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 PTR_ERR(sport->membase); sport->dev = &pdev->dev; - sport->type = PORT_LINFLEXUART; sport->iotype = UPIO_MEM; sport->irq = platform_get_irq(pdev, 0); sport->ops = &linflex_pops;