Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp2464199pxm; Sun, 27 Feb 2022 22:35:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJz1lDeC/niKwy1GN3Y345KQr+YzOZ0JI1KXzZHbwTzf7f1Maf19K2zduJfEBmO3ZoCQwBew X-Received: by 2002:a17:906:1ece:b0:6ce:e14:6d92 with SMTP id m14-20020a1709061ece00b006ce0e146d92mr13893598ejj.408.1646030114854; Sun, 27 Feb 2022 22:35:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646030114; cv=none; d=google.com; s=arc-20160816; b=CYU2Hov7ya2IZvqYc7gCqsDdl571eLB+STlcGw1Psr5dnyY4ObOh2VI5PG3jRYMhIm y0Ipr2EhscGd/13zws3Q4ihh+GjQh5x4B+tCG2DoyTbvV31CzMQHZw6VObVVyzS7npH+ lCk8WNTjyMITAJOBNJxOrYPqv4adTz8y2SJXAaxfO2a2aqVGdMbKPtWChkFEM2n5JvyH W2WCzqHn30miisbc08wqIeEbcszi8rl+tyfrAYvpHVkuksxLuQVfruaBBcW3JrYIQGC6 6r+WcwFEpAOXFGO7w79YJ0BMRpbXIWibHp/PT0d2ssixF/cylp2vIERaT2IqbtYL77EL mbsw== 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=b2y7rSofyMsAlLxNarbQCRJjCqiYzdU9dmvDBfCGMLU=; b=bAV815QdE54+S8S8pBEgOZM++DAnz0RdX8YYV86zNAamYCBNkLFLvq+C6wzLsW/WEp entb+8VzxX0UGoZtezqCHWcurdTP3g6R/7uLq4yVNTEKm9BnZhZsARioqgfKDGyWhdQM nZYFRXme01QZ9dPAXmEWGwKU2ODofGkDGoAhWNDoyJ1k9Whw4sADmXMt6qwkdcLeG9IF 0B7rYGVyPuw7cB4348l4IpXEFLBuUp3losW4uHiJ46mWRCoWx6x1M1txBveX6qpsl7M2 fgDzR4m1Dug9WOea9v4mRJmZhghXJY/CnuYoWxtGKj8H4L9/kcI+7KbDtbjLpV7cTW9Q MJ/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=JR1AKVuN; 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 i8-20020a1709064fc800b006b5350fc14asi6392470ejw.573.2022.02.27.22.34.52; Sun, 27 Feb 2022 22:35:14 -0800 (PST) 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=JR1AKVuN; 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 S232613AbiB1Ck7 (ORCPT + 99 others); Sun, 27 Feb 2022 21:40:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51862 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230043AbiB1Ck4 (ORCPT ); Sun, 27 Feb 2022 21:40:56 -0500 Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83A2C6AA5C; Sun, 27 Feb 2022 18:40:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1646015996; bh=b2y7rSofyMsAlLxNarbQCRJjCqiYzdU9dmvDBfCGMLU=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=JR1AKVuNiqUbEUxyLsIzhssXF9U04iy6wbasXIWcmPYcWOwJvuupuX1uddFXeogpZ Igz8/9xLnDe0p0aWHdBknWFv+R6f5be4m8UZ3HGhaJF+F7oEyj2PmyvBaIS/3Y+4R6 FbdhhRQz9Q6v8Nl4MfPcx22jhW1XiIKwXCqnvXqM= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from Venus.fritz.box ([149.172.237.68]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MAfUe-1nV5W81iES-00B2Hg; Mon, 28 Feb 2022 03:39:56 +0100 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 8/9] serial: fsl_lpuart: remove redundant code in rs485_config functions Date: Mon, 28 Feb 2022 03:39:27 +0100 Message-Id: <20220228023928.1067-9-LinoSanfilippo@gmx.de> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220228023928.1067-1-LinoSanfilippo@gmx.de> References: <20220228023928.1067-1-LinoSanfilippo@gmx.de> MIME-Version: 1.0 Content-Transfer-Encoding: base64 X-Provags-ID: V03:K1:XQdTAWN+hOCHQZI0v6PwJlCmNFGeLzfYONORxEzccuJo5JNkvy3 L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bypfH2N1HpTQD1taLu4T92kXyjd5ZctcvG q93VbVjfUxgPHblv9p8hTlvUKwG1fHWmrUXyor05j/VuzBUxqUGI8Di2NkQ1Dz11wkXaCElqb syV/NuRUnFUnqvPrSG8/TMt5tAv7kv5ejJnerymMg0Xe6ntqCIRNk7sqg/6sFVNUbKwhV/De0 aQ6QSi2Xyt2t+5f1LgX/5n5kslu4LKcqCzuS1sGOK6B8rb7uZMu3IOwkTrJbKgkO1RzeHU7Fd jaO8BDIuDCxWc0= 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_H4,RCVD_IN_MSPIKE_WL,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 Z214LmRlPgotLS0KIGRyaXZlcnMvdHR5L3Nlcm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