From patchwork Tue Feb 22 01:14:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lino Sanfilippo X-Patchwork-Id: 12754395 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6AE92C433F5 for ; Tue, 22 Feb 2022 01:18:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=dsf72w/lx5+pxXikyUJ719yafq6YHoofQVfOZv+7DHA=; b=XKcpCMTd1X6dke qKHTXhPc0JN4hFN3kVRoGc8Po3rMcheHQJqcCDPnNVowd/WDPMbCE+L9PPbYY9jSpHTtOCEbYiLli L6Hrt2J1+6kx/PXKwOGvbu45U6Dkhhtbyb4q7aY01hOUkk6/V7nYpRr+RJj2MhoYH4ZWLpQn7OD36 0yIpnv8/+VaS0+VkODVZDinck1Y/5UYcqYsdKC8NLUGaC2A2ScKXHSzKbvKrflCdwVJSv2wRnsy11 +Jc6pkL+2hvIae+/bW4+6tqLXmxP3g33dQuOTuiv5estYM5q0raVwhfGDSw0qqy3/Vlc7J+9KzOIW 36FHNtSAMCAwAvLV3HZQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nMJno-007b2s-Bi; Tue, 22 Feb 2022 01:17:17 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nMJmB-007aPp-5M for linux-arm-kernel@bombadil.infradead.org; Tue, 22 Feb 2022 01:15:35 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:Content-Type :MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Sender:Reply-To:Content-ID:Content-Description; bh=TjAcqoaAnmI0l2suIZ3fiCn2gdLnVgDyq5jYOOZmOWA=; b=f2vxPZaz1oDLmk/oBYki2K0+1t EnsYRwBEiGgI3hR8WSmZsSY6mJIUN+HU4miKl+JQw97cng5aPze9+Qj4dMOZ9RMPvTNPoQR1zeWZR NdscxfoAkDWujBdE9Bk+3WS//cqj5UKEjr+S2EuZhcLFdcrDIqK+xdRRAxW50gtV6Up/ozsaTh9em IyEu+k5AGnMZURSoiFXtFmm5cwrIv4x4M+omLfAVwuYAFcNpT2NgGq/IW++ELwNj9sFv8jAGZTgeQ STFI/Rf91eYeGxHxNP+JFBMXerFxdPyur96VZ9mrXgz91LUqG01BHe3YPTFXfr+FuQfxEXZy3yTX/ Byw6fsvw==; Received: from mout.gmx.net ([212.227.15.18]) by desiato.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nMJm6-00Bnki-K7 for linux-arm-kernel@lists.infradead.org; Tue, 22 Feb 2022 01:15:32 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1645492511; bh=TjAcqoaAnmI0l2suIZ3fiCn2gdLnVgDyq5jYOOZmOWA=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=LTz0z5Gv0OEbNfXEttjpUpY1StURQ43ghgXLj6NkVcjkFCinQ8M+jpRBMV9heU0iO 86BpIdarylbTDMgLwJSzsU2wB5jmx3o/qiHAQBlFmnbN49+XqE4Qzqb7FyMg5pDmkZ TBmzZfptM7cp7slPKH/+TIdEdjMvk0MqhncaeFsM= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from Venus.fritz.box ([149.172.237.68]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MBlxW-1nWB8d0GvU-00CDtI; Tue, 22 Feb 2022 02:15:11 +0100 From: Lino Sanfilippo To: gregkh@linuxfoundation.org, jirislaby@kernel.org, u.kleine-koenig@pengutronix.de Subject: [PATCH v3 7/9] serial: imx: remove redundant assignment in rs485_config Date: Tue, 22 Feb 2022 02:14:31 +0100 Message-Id: <20220222011433.8761-8-LinoSanfilippo@gmx.de> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220222011433.8761-1-LinoSanfilippo@gmx.de> References: <20220222011433.8761-1-LinoSanfilippo@gmx.de> MIME-Version: 1.0 X-Provags-ID: V03:K1:1YjX8AGdE1o4xjj2QyZrTsKWKlZdYsaumGzkTXDBGOIRX0WhWF1 PY+KkvB9dRtw2LGnGpFJYSr/TYktTeU2sH+z8xpLb+7FlurVJ3LKy3H8hDAVHoSC5Pr2ogx P81UN/2jp9d+KYIGKwwcPh+LCJ6SYpR1L9kSN6NuowVZUvzc6momOrQ9Oew9LeOw6K+pejj 1Q9VfetxAdi6QQYh7XDoA== X-UI-Out-Filterresults: notjunk:1;V03:K0:1wWUJEnpg5s=:ivv3awWHvYGuc2TZ3OchJg APy6vv4xNBuzxPiqGyz9JtocH9MYSK7i6TjVINtD9Qii2oIgN+4/LLe3ciyc58ctcNuS/7Qot a+LEvoIjPCY0nlu0hrJbZWp3JGTj3TBDAqJbBUXUG/ojOX6TN50h1hO/rhxyAjZ9nHBDXYYrm 3wlP490nhGFWGT03kNt+FRR4CTr6VPtlpUUZJDaLYWAztvKpv/ekgW+riAdmK/WT1OCTNShiN OH9Fp3C/3lhEySPXPgjW44bphhiOmdKn9F2yj8spKYmWyAJsQubozh1ZdcyGmtNFAtgf3ftub YrVAeVSwZsQc43f6y3B6dmt+weKGrXFZr0rmS5yAMWdTtCcqBaS9Hali2WRAlYNJu04IMVgKH QPNq2HYdi1+gJOqDVH1YkeJwr262zuK1iA7l1GLyat3YdpSBuaQGhd5fkO7jbXFefQFf3mZYt LlH4y4YR3R8dgqZVwztexm+0W4eiPoTARVUXvwRjy5ZQsDvMTG1Vl1qZK4BDSsXdnhN/ZzEk0 GPbZbNKcxzaOO4za/u+Xx4yj00Nq01hlzURnfo1cmmSn0sfC2a30NdJ6R4i20ujOKikzyNPM+ oE9xzxxv6vC0lVxmQlhued/Nz3m3a2gqYNe+N/OYUmK0l3jniX6jlUWu5SD+EXI/RgY1jl6H7 Em6EkfsKO0FOy91jsmcJczFPcMG7+FItiRZ5ljvsm0vOamXo1KJW8DPETSNLzFDWOrvRMnWfN vJPOaULRb8sZby4AmAYmWX6SpxJ3l6L/NgB2neSwoLzMPACrA27oheCsn/nBvbNBFwiNN1ekm LyMNFAMykCwG4wKyq54YjvZEW89MB/b/q0t9ZeDzx91zrO99VhCthNPXwY2eS11WAgSZmLPlM k6SnS4Tb7UIEYUyZLljpQfk+Q19zZX1A/7c3hyCfJ7y7TexTLckRuSOHoy+MVwATE6tJQkFE5 5lysybyi2i/7nIOXu0hti1O0ocriMSPc79K58wv9xChIzwzhgkSBbNlcYkZ/wiwWDdwtZqJyQ 209fzvbtyHxIvgTPIPoNNjvDgp06UHSp7i1PCa+zaIKnKvHsPgS91V5Dh+T2ML437GiIq8YHI 0GnWJ42CXehcT8= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220222_011530_925457_416FCCF9 X-CRM114-Status: GOOD ( 10.81 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arm-kernel@lists.infradead.org, alexandre.belloni@bootlin.com, mcoquelin.stm32@gmail.com, Lino Sanfilippo , richard.genoud@gmail.com, festevam@gmail.com, s.hauer@pengutronix.de, linux@armlinux.org.uk, alexandre.torgue@foss.st.com, ludovic.desroches@microchip.com, lukas@wunner.de, linux-imx@nxp.com, kernel@pengutronix.de, linux-serial@vger.kernel.org, shawnguo@kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-kernel@vger.kernel.org, p.rosenberger@kunbus.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org In uart_set_rs485_config() the serial core already assigns the passed serial_rs485 struct to the uart port. So remove the assignment in the drivers rs485_config() function to avoid reduncancy. Acked-by: Uwe Kleine-König Signed-off-by: Lino Sanfilippo --- drivers/tty/serial/imx.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.c index 0b467ce8d737..ab56ff23e8a9 100644 --- a/drivers/tty/serial/imx.c +++ b/drivers/tty/serial/imx.c @@ -1937,8 +1937,6 @@ static int imx_uart_rs485_config(struct uart_port *port, rs485conf->flags & SER_RS485_RX_DURING_TX) imx_uart_start_rx(port); - port->rs485 = *rs485conf; - return 0; }