From patchwork Wed Jun 22 15:46:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lino Sanfilippo X-Patchwork-Id: 584140 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 EC440CCA481 for ; Wed, 22 Jun 2022 15:47:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1359524AbiFVPru (ORCPT ); Wed, 22 Jun 2022 11:47:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1359161AbiFVPro (ORCPT ); Wed, 22 Jun 2022 11:47:44 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 176633C4AE; Wed, 22 Jun 2022 08:47:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1655912842; bh=5KTQXMZiT6D7UTxVVBqbL5j7igCB2KvHxvl0c3jIThM=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=b23P5kRcBPxk+Mh5R0DyccQRxSN7ul5bW/3joQlL/4IfG4g8lESitm603XuYPUY/f Dd2ogve+eR32enNs0eKYopEsm+U5PPTw7YMi0xSzSganBpDv7zYOeV45mXoLLqALam n4JeecrWhfRdQsxMaM8pRNkPK9vx+4uWTai5ekuc= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from Venus.fritz.box ([46.223.2.22]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1M3DJv-1o73mJ0v0f-003guP; Wed, 22 Jun 2022 17:47:22 +0200 From: Lino Sanfilippo To: gregkh@linuxfoundation.org, jirislaby@kernel.org Cc: ilpo.jarvinen@linux.intel.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, andriy.shevchenko@linux.intel.com, vz@mleia.com, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, lukas@wunner.de, p.rosenberger@kunbus.com, Lino Sanfilippo Subject: [PATCH 7/8] serial: ar933x: Remove redundant assignment in rs485_config Date: Wed, 22 Jun 2022 17:46:58 +0200 Message-Id: <20220622154659.8710-8-LinoSanfilippo@gmx.de> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220622154659.8710-1-LinoSanfilippo@gmx.de> References: <20220622154659.8710-1-LinoSanfilippo@gmx.de> MIME-Version: 1.0 X-Provags-ID: V03:K1:+/P+cW6WC/sfzPNKX52MvBHuDtz6aEhlqHZ5nTG7UhbBBXSh6BA mjRMJwcHAM7Yeu1flSL1UmEVHF4kzmijtSwjB5fLJMlCYt0HznQ93Wq3KEFFrwXNQ+ZedWS tnXPaXlpEt3p2UgqKqA6GxaPzGPLsEt0jbJCaL68R7iwhwRcHJa/1qXPSOEyoxeYzUbYP41 df3UthSFC98NFFLbvT9Zw== X-UI-Out-Filterresults: notjunk:1;V03:K0:ZkIw/wbidMs=:QchOS8ZSYUDzL5VwVNxQPh M1Vin1g8XTNCVIlZjM+S9zCpAi2ThwSjOnJGpUAGH7hf0FR74m7Wo2df6dnPHWOMQ3pTMP+Xa TDkdTWaD6g5n2mgZER5aNCnYAS82jdVT98RA9+Z/wX3fApONnLiIb7oZ3iQjsmC/+cKOak0Cd l899MXix3GNBUF8ceZQI4f+IeWzMjM/u0FGI2LOR1xY3Egh5CXqPZqn84Mq8WP/P31KqdrxHq OlKh6vkk+1bK7VifnQFWARCH37n3+29e6U8wdpgNBzDPuiEGvlihkUjxQYc0RfGIZxK0zZ8jU kxEPOl+y4ZPbpIwFwsGaMMd4eaI848CFCATkO0NarmAaqPfy7RmCJ4SOoDVY+TTtY4S++l2LZ gvcYQy14oJRa0X0VAgH/n1xz/CPuMP+v4BRdQAg3s9rTDtXNh3WGxkRKsLeiVWo1ImfdhVB1o D1tXwS/ye87TrwcgC8ir4bIsET1NzBgYgB1UZaos4l2W0YjvyqO61+HFdZY+cCSzgigzSMi18 qMpjQy9857p+7qyH3qax39Dx3n/vN3WFRHYelP3DMoSfc9UDP2dZQBwDV7Y+VEaK1xj/vxs62 rLGs7YUSqFEAncPXZLfFHfgT0TGOQCBhO8V1C4e0eVeNNZR0uJyO7zDD6MpiqV1hAFk54hEs+ imCrv7ce9l1zzvULo7AwIhHB0YhQ6Z1vGFZ0cPtfeqIh9oquiQaPo82sSLTzN/pBimKz3nQSy uvEOZPfv9QofW4qgzfNf+7Ow5IIohW9T8hQjjcJ+c1YehpibMYh8LIbsNjoa4K7/7er+hTS7S 44w069ud3GUhSzqAJ8Y3jv16/l2Q8V2gZBwHGgUoM9P1uxKube94aNwZ/8qcg5bxfJoMKsjYX GcF3ZcCSY0m5Wl/T/TVFpDjVHtIzp0p3PLFenz6faEh/L/zFqcCW9NZU24dRENv5qQVMTV7j4 b7gNO9KpVIs1B4kE9KFI+o4XChCyyIwufrlFmsGwLpTleKf8Tw5Hmiyxralvy7OI0sS2TGnL3 eNYWHv4EOA9ExM7oNqqdAg7oMKnbbQoT7hhs9ezO1NwFZFlei01nyhL968OoSrPz1Us36N9bS GHnB++5ZabW3zKc8DfQwk+lyLZpckBrq7vlLlUC7pMrelUlIgqMCwCFcQ== Precedence: bulk List-ID: X-Mailing-List: linux-serial@vger.kernel.org From: Lino Sanfilippo 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 redundancy. Signed-off-by: Lino Sanfilippo --- drivers/tty/serial/ar933x_uart.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/tty/serial/ar933x_uart.c b/drivers/tty/serial/ar933x_uart.c index ab2c5b2a1ce8..857e010d01dc 100644 --- a/drivers/tty/serial/ar933x_uart.c +++ b/drivers/tty/serial/ar933x_uart.c @@ -591,7 +591,6 @@ static int ar933x_config_rs485(struct uart_port *port, dev_err(port->dev, "RS485 needs rts-gpio\n"); return 1; } - port->rs485 = *rs485conf; return 0; }