From patchwork Tue Jan 3 17:09:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lizhe X-Patchwork-Id: 38558 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp4732042wrt; Tue, 3 Jan 2023 09:25:29 -0800 (PST) X-Google-Smtp-Source: AMrXdXvswQprSOerg4WMt6FlbX7MNJKRiDycj1IAT7/c0/t9YGL1IdUnVom11aG543N9N4JCVJwG X-Received: by 2002:a62:2903:0:b0:57f:f2cd:6180 with SMTP id p3-20020a622903000000b0057ff2cd6180mr43870775pfp.0.1672766729411; Tue, 03 Jan 2023 09:25:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672766729; cv=none; d=google.com; s=arc-20160816; b=VqyK0yqctEWN+1d7gdITErmS4eHT5fwO9G6qKTmoHdwepg+jSMSCr20Onmb5XQsJss JyEe1h1nggcVJz2Qw3lffSBZr0nEOexTIGkt1j+a+nt0KqIm99plixPeteUpuHk4ME40 rwi0rXfjTrsgjwi8ofCnJTYaXAQNBez5WZX6qKVbFsyU0MF5nmnlvvv6PnkjGwNHSuTY WhLagBBnPMg62r9p3VPcPtvYG4byNj886VbPhUWJWZAthftmAMNMxFutnRKDQR56Xjrc WB4QmXOawK63IMpVTyevuPqzaKTbnS+C7AjX3XWZAc2GkVUpcJ+LHpXyCGdgt+Hu0F0T nShA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=O4rnvdDDpajkGG7+QirOiKaOcHU3GFAj6R1dSdlfTWE=; b=o+872tn75lKUmTJR1DMfwEWg/Y9UhqZ9uigx00rVre5qj2zMYZaz996MMEUgEIohfn onRCW4jo8iEbF/d+58gC3YTJZ3FhM7n4myBOZ4FgWQApGZDR5ekEBwPT6lamHNiaaZhA otwJZyqoCMeutvRqcHVCFcYc2N4GbSdmgeKfA6/aHptHGiEo7W8+OyZDxlP+51kTSA7L rg3F5BCKqQshv+XwRUO0ByFmi+ZDUH3nq1u7DNHW0TLi8/HpbER7y0wslM6nflRA83RX fhjKOFlnvrlO0j3INAN968cVEp20fmJP7jNRL0laZt2thSHerxCqNCOyGLeajb3MXgC7 CW2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b=ererlTOd; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=163.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l20-20020a056a0016d400b005787fd98b6bsi36105760pfc.323.2023.01.03.09.25.17; Tue, 03 Jan 2023 09:25:29 -0800 (PST) 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=@163.com header.s=s110527 header.b=ererlTOd; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=163.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238490AbjACRM5 (ORCPT + 99 others); Tue, 3 Jan 2023 12:12:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53816 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238813AbjACRM2 (ORCPT ); Tue, 3 Jan 2023 12:12:28 -0500 Received: from m12.mail.163.com (m12.mail.163.com [220.181.12.196]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 396D9DF89; Tue, 3 Jan 2023 09:11:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id; bh=O4rnvdDDpajkGG7+Qi rOiKaOcHU3GFAj6R1dSdlfTWE=; b=ererlTOdzCFPlDlgxm/CQyHMaw6ONUxmrP djlksrRdCBk7Wox0S3b/OF/TKJxIaTz7xHytxoR95cT7Fg+RFtOHSvSvZCjrwSGJ 3lrOWjqdY4yGyc+aWin5HRqZdvH6xNO0eQqPDylMkP8vN9nVDA2kF3bJeZvFJgEy ZIDsACK7k= Received: from localhost.localdomain (unknown [36.4.209.174]) by zwqz-smtp-mta-g0-4 (Coremail) with SMTP id _____wDXM4VfYbRjveN8AA--.3535S4; Wed, 04 Jan 2023 01:10:29 +0800 (CST) From: lizhe To: jirislaby@kernel.org, gregkh@linuxfoundation.org Cc: linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, lizhe Subject: [PATCH v2] serial: linflexuart: remove redundant uart type _assignment_ Date: Tue, 3 Jan 2023 09:09:48 -0800 Message-Id: <20230103170948.3777-1-sensor1010@163.com> X-Mailer: git-send-email 2.17.1 X-CM-TRANSID: _____wDXM4VfYbRjveN8AA--.3535S4 X-Coremail-Antispam: 1Uf129KBjvdXoWrtw4rAw47XF48uw13Jr1fJFb_yoW3uFb_Cw 1DA34xWr109FWayFnrJFyYkrZagrsYvF48AF40vasaqw4DZa1fXryIqrZruwsrA3y8X3sr G3yxWF4ayrsrXjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7sRN5l17UUUUU== X-Originating-IP: [36.4.209.174] X-CM-SenderInfo: 5vhq20jurqiii6rwjhhfrp/1tbiKAXrq17WLufu+QABs6 X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,SPF_HELO_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754023045924908047?= X-GMAIL-MSGID: =?utf-8?q?1754023045924908047?= in linflex_config_port() the member variable type will be assigned again. see linflex_connfig_port() Signed-off-by: lizhe Acked-by: Jiri Slaby --- 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;