From patchwork Wed Jan 4 15:24:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lizhe X-Patchwork-Id: 38979 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp5205146wrt; Wed, 4 Jan 2023 07:34:31 -0800 (PST) X-Google-Smtp-Source: AMrXdXttvv+qda9Zs5njt7mlM35BggxrrUAW9Oh4BBUGAnyrc8R8eQFkTovIgh+USpnSviMFw0aK X-Received: by 2002:aa7:db91:0:b0:484:9e05:b356 with SMTP id u17-20020aa7db91000000b004849e05b356mr37810139edt.27.1672846471615; Wed, 04 Jan 2023 07:34:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672846471; cv=none; d=google.com; s=arc-20160816; b=dOOHk8I4zvdzYxH9I2Fq7aSU93NHdrOewjGn8izTDnQQlkEr+k8WjwWicjY2vTwoE3 DIfNCQa8ryWhSWoToxFFzHGLlNxkgX8c9D9eJe+sCN+LZsg6TQSFozoUIJwmRdgP2Fip 2RTOxCJR5VRCvcdzb3yI5TcuzHhjY2eLaRpcTfrWZ76OXoo3np+HmwtUJ6I/CH3lm/iP w6qx/1FdQnLOxEMrgd/1NPCctTLhX6nzehYCe4xf17E5u+9blFloGooqSONUeYVouqL/ b1zWkv/4B3E1TnEiwp1LCbHX4i2ntdTvwrGWCXR3md+6V57BUCQ4BQU0cujEIKSLbJ0D Rhmw== 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=xHX97vFou7CZnafP0EzQLsxSqdqEy43T2DctXuby9FQ=; b=0IrVhmPj19YjxaQ0pnd/NOGPIJhaiRbmcWvH91MuuRB9MbaM/3aFXi5klozq4SDAiS nAi512xaqIsADlul8g6VRO2vOIf3ack1oyz0H7lVOireQ+esi6x1N07N+d+LOtphpzU0 wAllZ/xWCwwibK0mQc+nIDpzsXhNIm531b5tpeTlVAh+J6bfSYajMIvhk6bm+DejzYLe UmPBlvclX/pcm89REMqtgxS/gvXthFoXSxqMMbepyNTLFh1ojFf8oDpy3iafVEKm7lRB payH/itB01+wF9SCpfUcLAVOXGvwnQumPTaQtsXAYD5Y6BgSpw58Ap6BxTwNLCk6c/re wiTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@163.com header.s=s110527 header.b=JQ2YOVyQ; 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 i6-20020a05640242c600b0045ad02bb8fbsi36014018edc.290.2023.01.04.07.34.05; Wed, 04 Jan 2023 07:34:31 -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=JQ2YOVyQ; 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 S235077AbjADPZn (ORCPT + 99 others); Wed, 4 Jan 2023 10:25:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34608 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229499AbjADPZm (ORCPT ); Wed, 4 Jan 2023 10:25:42 -0500 Received: from m12.mail.163.com (m12.mail.163.com [220.181.12.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 699CF2AF4; Wed, 4 Jan 2023 07:25:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id; bh=xHX97vFou7CZnafP0E zQLsxSqdqEy43T2DctXuby9FQ=; b=JQ2YOVyQoEAK/rmg8+RQPGkMHF0KuzkKI/ MTcJ+75oDWfAzuOrL9kYHSCYsplXO+Tkoh+UOb86CjVEEPwCXJ/DGcqWlRJYgbTD fRG+R1yyPdn8xKCHZ/qp6H6uZ4c1xk2QijmPnAxDzLkkIxFHC7EK6Ofs3UbmXX1R QxCqv5O4Y= Received: from localhost.localdomain (unknown [36.4.209.174]) by zwqz-smtp-mta-g0-0 (Coremail) with SMTP id _____wBHo5g9mrVjhjNwAA--.49442S4; Wed, 04 Jan 2023 23:25:16 +0800 (CST) From: lizhe To: gregkh@linuxfoundation.org, jirislaby@kernel.org, ilpo.jarvinen@linux.intel.com Cc: linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, lizhe Subject: [PATCH v4] serial: linflexuart: remove redundant uart type assignment Date: Wed, 4 Jan 2023 07:24:44 -0800 Message-Id: <20230104152444.3407-1-sensor1010@163.com> X-Mailer: git-send-email 2.17.1 X-CM-TRANSID: _____wBHo5g9mrVjhjNwAA--.49442S4 X-Coremail-Antispam: 1Uf129KBjvdXoWrtw4rAw47XF48Cr17XFy3XFb_yoWfGrX_ur 1DA34xWr10kFWakFnrtFyYkr9agFs5ZF48JF10qa9aqw4DZw4rXryxXrZrurnrJw48Zry7 G3y7Jr12yrnrXjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7xRM5l8UUUUUU== X-Originating-IP: [36.4.209.174] X-CM-SenderInfo: 5vhq20jurqiii6rwjhhfrp/xtbBogPsq1aEHDuKVAAAsN 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?1754106661421774625?= X-GMAIL-MSGID: =?utf-8?q?1754106661421774625?= in linflex_config_port() the member variable type will be assigned again. see linflex_connfig_port() Signed-off-by: lizhe Link: https://lore.kernel.org/all/20230103170948.3777-1-sensor1010@163.com/ --- 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;