From patchwork Sun Jul 3 17:00:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lino Sanfilippo X-Patchwork-Id: 12904420 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 63DB7C433EF for ; Sun, 3 Jul 2022 17:05:19 +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=/qsr/AgcM3A7epBa5tqa5IXEGX1q+bMwyiU5EC8Iil0=; b=MMYul/NxNmxgsE 6l40396l5lxkSo65l3ee963dGpOcyh+vgAtN+RJUvJooAEm7XRCmuDn6ZbvJS7+27bl+V4ZIqwehP AkOMr0o4WbP4Ugi/6gTGGiM2e1t8uH+2GsGt40RAgX2P61W8kRHhTAgW4n3bAwj7xXadJi5LNQ8mo XGa91r7NrHqHZgJ8aJvPqt45fbjqgHDOxaa6mVb+tV9YgqP2Agkundwn4iEri5TuoetqV+f/0Dkrn IXUyfoj31xcocLDo20bD5pJ/+fCX7J0NUdunKLsS/HCBNYN/I7vVCurLtmYnJ8LyzGueu2NdJXIL1 qSBKJhd3LQRVRHEqghNg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o830z-00HNsF-Em; Sun, 03 Jul 2022 17:04:09 +0000 Received: from mout.gmx.net ([212.227.15.18]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o82yl-00HMW8-5Q for linux-arm-kernel@lists.infradead.org; Sun, 03 Jul 2022 17:01:52 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1656867693; bh=AAX50up9vrAlY/p/+wJUzVHbLcYBIrsT5uEQh7IkmNY=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=Y9+z4Autfh1ycKRvZkjfgTSyYoVnBehSUKpQ8YHzXjTP+yqmOGPmt0GFbxVbvKpqe XkIAowi8qE3JZEwhCE7X/bLrO10Vo3b9SXAGA7rtFyXahwCs0a77mdixtxQqgvxj+a KJsYPge8l7shau/QnBdFs/wZSWc1PSvKp29A9npo= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from localhost.localdomain ([46.223.3.210]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MYvY2-1o3d6b0r2W-00Uutl; Sun, 03 Jul 2022 19:01:33 +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 v2 8/9] serial: ar933x: Remove redundant assignment in rs485_config Date: Sun, 3 Jul 2022 19:00:38 +0200 Message-Id: <20220703170039.2058202-9-LinoSanfilippo@gmx.de> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220703170039.2058202-1-LinoSanfilippo@gmx.de> References: <20220703170039.2058202-1-LinoSanfilipp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lw9StHRpzmu7GEcdv2sU2ahwcWPzk/jEJpXlgeqyQr uPtbExaRnaK3ntacrQh1sPbyEfx8m7LeuPzMvPeqGed0mLAC/OPVeKzZRvwygG2x1frs47xnh /EMaStot/N9YFjRL++X/Jumd1w3mmSNI/3j4F2aNfi6f4C0YBATRjVWvFfwu8CwWcbkQPJWUG ngESaWIbYqHHDghMk/XwDr+3GQLA+hqivJdPp/ZaGsDn+xjyE3mkhX1UrFTwTEe17HWwW2nqm Lypwhq1CvInOJvto8vegRnQV3bpIf5qUgkLwZpkNrRT1NZlsO4aaNexrzYNxIr2nSe9IiQh4m 9pJLBpjNojGVWYPApshIRSBbG0M1+12EilhxIqGEUYzyYR9O5n1w7O6Xw== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220703_100151_575981_C2F0CE49 X-CRM114-Status: GOOD ( 11.77 ) 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 dac48a330db6..e07d8a550a49 100644 --- a/drivers/tty/serial/ar933x_uart.c +++ b/drivers/tty/serial/ar933x_uart.c @@ -583,7 +583,6 @@ static const struct uart_ops ar933x_uart_ops = { static int ar933x_config_rs485(struct uart_port *port, struct ktermios *termios, struct serial_rs485 *rs485conf) { - port->rs485 = *rs485conf; return 0; }