Received: by 2002:a05:6a10:87d6:0:0:0:0 with SMTP id g22csp1090672pxr; Mon, 11 Apr 2022 15:02:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzqL/+yugVrqz2Jk8fCXVuxqekf+yQAiWcwt0miqxB2z3gj1xuxZZLp/tiTiteN0vZJOR1y X-Received: by 2002:a17:906:4d1a:b0:6e8:8860:8a72 with SMTP id r26-20020a1709064d1a00b006e888608a72mr7977560eju.540.1649714546861; Mon, 11 Apr 2022 15:02:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649714546; cv=none; d=google.com; s=arc-20160816; b=H8ITbYussAROvhg3V3kCE9bHvSfc3oblWNUbM9IwQr3Rl3VV5AnPRpVTFoMobdhthO uEV50v93Rdq3tPEKPGUs/T34otVqG92JzBjdLi5yKk41vzLka6GBlBEz0aF02hu7xDyk nCfH+AEpL4UFXh+bIts5bCpIiOg6PfdHRMyFTmlO1SdF8jvv32GrbA8XXGmvcgxczL/O wTIfysxoKtuBGoltdyaxHK40FyBnEjMcAAXAyOExrJxWprn+tUbxCu21Cw28BPI/iigf X4dZj/twYXzNiiwCUGAv9+wwOnN4+N3x8E3VGBJKNKKRDZScniRGNItT4GHD61vRNh+8 QGhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=JByECI7TAM6CgORkivVd7bXTA2zEkD7TRbKJYZRCVwU=; b=heCOuiI7LIKYaWR7btWhMKQN30mFSYKxvqCOHgQEGSQBOcYz26pz3Q5Q5re/dSQmTb 73JIXhpurUHB7uWip+YkexXBbpSkCcIa723PP7FBSX4yJVGrYTMkuVBN6XEyxYFNde32 jwkDhIljLro3bXzJzeEVa0TGykK9vB+K3N1IADNaI2oJg6z6NK1W00tSbkOTUePkzNH7 0soeTtyHyCNJQwbVFkC/D+onsnjlZUPv9AQy4tEAg1XsRlJ/7PJLmtJzhOAvBxrmsWOJ Fkdv4JI0cgKBkJmiAMICTKwUdFpDdq/TwII3j6S5MigGS8WjNGI3yyBKRL6CI3XucZX9 WweA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=Q0GmQdFV; 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=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h3-20020a50c383000000b00418c2b5be7asi7479358edf.348.2022.04.11.15.02.00; Mon, 11 Apr 2022 15:02:26 -0700 (PDT) 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=@gmx.net header.s=badeba3b8450 header.b=Q0GmQdFV; 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=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231146AbiDJKur (ORCPT + 99 others); Sun, 10 Apr 2022 06:50:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234717AbiDJKty (ORCPT ); Sun, 10 Apr 2022 06:49:54 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC17D5370F; Sun, 10 Apr 2022 03:47:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1649587639; bh=JByECI7TAM6CgORkivVd7bXTA2zEkD7TRbKJYZRCVwU=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=Q0GmQdFVVtIDZEjsMvsKkTHWKuiQIUpuSnwVlh0O4VsrtgQSy0pfA9awKY9GygFGU xUZ49NTV32j0QL9mO8ilQsZaUvu+OjXj4yBwwEe22/3eGEPife4x8qFzDPnaGkrvcO sp0kUAquj+xqL4tN0IS6AgwMZPuvWSuPQak7sPqA= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from Venus.fritz.box ([46.223.3.230]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1M3UZ6-1ncx8P38GQ-000YNM; Sun, 10 Apr 2022 12:47:19 +0200 From: Lino Sanfilippo To: gregkh@linuxfoundation.org, jirislaby@kernel.org, u.kleine-koenig@pengutronix.de Cc: linux@armlinux.org.uk, richard.genoud@gmail.com, nicolas.ferre@microchip.com, alexandre.belloni@bootlin.com, ludovic.desroches@microchip.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, mcoquelin.stm32@gmail.com, alexandre.torgue@foss.st.com, linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com, lukas@wunner.de, p.rosenberger@kunbus.com, Lino Sanfilippo Subject: [PATCH v4 RESEND 8/9] serial: fsl_lpuart: remove redundant code in rs485_config functions Date: Sun, 10 Apr 2022 12:46:41 +0200 Message-Id: <20220410104642.32195-9-LinoSanfilippo@gmx.de> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220410104642.32195-1-LinoSanfilippo@gmx.de> References: <20220410104642.32195-1-LinoSanfilippo@gmx.de> MIME-Version: 1.0 Content-Transfer-Encoding: base64 X-Provags-ID: V03:K1:Z+XKmCv9ccGIK4kvzSz6jEc3jegf7kILeUSLei2lpJxdxHIULrQ rPYaRQSw/gut4Kn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WJMc1YodbpKz/Tui2/pyOxawMXGVuuOF2RsiblIum2jCAbG3LULr22wqAynzT5SFbpXqj WYzoAEgf1v//gBHY6k/WxsuPiAnP1vYwuEfxISwDVzLDrgmGkM8ERueB6alEWcslY6A1lZp9G o8tFY7UUQPJOm8umRMPKzdK0o8ZyNPXVgIVLOjp1IDTJsWmxhC+GBMfLHS3I57/KkZoF1Mla1 phymVb20OGHnzE= X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FROM,MIME_BASE64_TEXT,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 SW4gdWFydF9zZXRfcnM0ODVfY29uZmlnKCkgdGhlIHNlcmlhbCBjb3JlIGFscmVhZHkgZW5zdXJl cyB0aGF0IG9ubHkgb25lIG9mCmJvdGggb3B0aW9ucyBSVFMgb24gc2VuZCBvciBSVFMgYWZ0ZXIg c2VuZCBpcyBzZXQuIEl0IGFsc28gYXNzaWducyB0aGUKcGFzc2VkIHNlcmlhbF9yczQ4NSBzdHJ1 Y3QgdG8gdGhlIHVhcnQgcG9ydC4KClNvIHJlbW92ZSB0aGUgY2hlY2sgYW5kIHRoZSBhc3NpZ25t ZW50IGZyb20gdGhlIGRyaXZlcnMgcnM0ODVfY29uZmlnKCkKZnVuY3Rpb24gdG8gYXZvaWQgcmVk dW5kYW5jeS4KClNpZ25lZC1vZmYtYnk6IExpbm8gU2FuZmlsaXBwbyA8TGlub1NhbmZpbGlwcG9A Z214LmRlPgotLS0KIGRyaXZlcnMvdHR5L3NlcmlhbC9mc2xfbHB1YXJ0LmMgfCAzMiAtLS0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tL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