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: 12891016 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 D811AC433EF for ; Wed, 22 Jun 2022 15:48:45 +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:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=qdlqoH7nRsXRiKGikYl3+gyn83OI0GPzJUfYsMx0Me8=; b=XLyFKTBJmNbmJ6 J53tquWsEmnxDxTZh7L0DgctMYTV6FSu72onZq23DFCS1Hm50zqoH5YAKE6FgH0fUchpbVlJA9pLs GYngXBpziiPmnWGBQRbr472qCh34KXRUd0DZhjRhiAXAWRy1LFJDW8dT3QwMt+guujdDTHSurR+5c MJcYupNkaeU+N0azuEhoVmCElB0hEeZs9XnlPdYwL7ow8k/l7AxSkOLkpIsfVSmCNglTbTHT/mOEc 0PYCD05LMwKQSpeWCm1QxJDhtKSDQJT7p9MY6b4//Bu+Dzi+xbLKKJutHN3yFkCJD2TuI0Wo3k+qd +5KwrZPseg4oyjcCU34g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o42a3-00BFI3-Vl; Wed, 22 Jun 2022 15:47:48 +0000 Received: from mout.gmx.net ([212.227.15.19]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o42Zq-00BFBv-8N for linux-arm-kernel@lists.infradead.org; Wed, 22 Jun 2022 15:47:37 +0000 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: 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IIohW9T8hQjjcJ+c1YehpibMYh8LIbsNjoa4K7/7er+hTS7S 44w069ud3GUhSzqAJ8Y3jv16/l2Q8V2gZBwHGgUoM9P1uxKube94aNwZ/8qcg5bxfJoMKsjYX GcF3ZcCSY0m5Wl/T/TVFpDjVHtIzp0p3PLFenz6faEh/L/zFqcCW9NZU24dRENv5qQVMTV7j4 b7gNO9KpVIs1B4kE9KFI+o4XChCyyIwufrlFmsGwLpTleKf8Tw5Hmiyxralvy7OI0sS2TGnL3 eNYWHv4EOA9ExM7oNqqdAg7oMKnbbQoT7hhs9ezO1NwFZFlei01nyhL968OoSrPz1Us36N9bS GHnB++5ZabW3zKc8DfQwk+lyLZpckBrq7vlLlUC7pMrelUlIgqMCwCFcQ== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220622_084734_807324_0CA5B7AB X-CRM114-Status: GOOD ( 10.30 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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; }