Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp2608170pxm; Mon, 28 Feb 2022 02:33:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJyBqSGRDedzGDAYhS01UbAp42jhw48vBrHv5ZDUxuFIyJog0X3aXRws0xLR2wO5uuweUHFi X-Received: by 2002:a17:90a:2e08:b0:1bd:59c2:3df5 with SMTP id q8-20020a17090a2e0800b001bd59c23df5mr2925325pjd.235.1646044402296; Mon, 28 Feb 2022 02:33:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646044402; cv=none; d=google.com; s=arc-20160816; b=Fw5nuHfNlg5+7T+wylOEEUGTi3o1Laa5h0CdXURB3FJOiyFFWed/6ej+wSRql6TtkM H/7DvxUYn9/IH29pIf2iqsV++3kh4vkMjDu7Y+h6tUzRpYoY/y/WV36DTd8OTBJD8Uyr riWjcVqFlkxjI7JQnG+c1eTqa3zwyQBxU2zYmfs9Qypz7BPbGevkTV5XTWZaxU34SjfZ 1GL7gbSOg0SdCbfsQiWgqhb+L6mFWamvyvrXm896aV6LQJbFhQE03wLZOan+Jgrh91Ei /hPZq+epcIeEEOZdGckZsJ8yEtpDQxrfgPWmoD617OkJi+COB7kaCcqdDd1H6J+a50uL 2rhg== 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=iPI9Eyd+3C6S85WoH/RH9YiOHOKEC2bR9K+d8H8925A=; b=qhgkKhgAnqI1qL0ii5qNoprwO3zfmSN9X3/uVnpucimCf4wb0xVKFB5GY90lhH510U gCmT5nd9uydF2B/KH+AB/GKTgMXjW/DZPDJlu8E26XPD8AyJamQMXC/3wDc95L8mvEsY lRp0TSOdbWnC2reruVfN/IpvbUli/4OkXk4U6Cg2CT6aIUBZRJbnM9Q6/pAzIdNNhgeU EU4asrYLE95iW2K1BA65yMTIa4Ajlv1MCDoV8BgoyL2uW7HG8HaG9ZjKAqPxoiImtml/ PJwZMvedqF6qTk7cXzyYtRFuxTLmWvxemZcTTINJ876ezATiePpSNzSNIhINMUQKLh7N VmPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b="B2rz/X9p"; 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 m10-20020a1709026bca00b0014a9b93e68dsi8635374plt.623.2022.02.28.02.33.08; Mon, 28 Feb 2022 02:33:22 -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="B2rz/X9p"; 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 S231468AbiB1Ck4 (ORCPT + 99 others); Sun, 27 Feb 2022 21:40:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229569AbiB1Ck4 (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 F1B0F6D4F2; 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=1646015993; bh=iPI9Eyd+3C6S85WoH/RH9YiOHOKEC2bR9K+d8H8925A=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=B2rz/X9piz6OIHopWLOnR1oRrBHZcoepl1hpJNpfcIm+OiUYTw6smz/pw8AB3R3/a r55CrB35v7qGgwzM5kYLiE1rHZxQea60z3wcibVZZ3LnzvtzuigJJDCWwCDOGLQ8LQ YSHdfcPMvqhgB8dKcOG5rvMJsaZIEFf+Kd8YvqXM= 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 1MBUqF-1nUoGl3ZVv-00CxpP; Mon, 28 Feb 2022 03:39:52 +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 3/9] serial: stm32: remove redundant code in rs485_config Date: Mon, 28 Feb 2022 03:39:22 +0100 Message-Id: <20220228023928.1067-4-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:Lr8oCML/RhTrktKji37TkXyhwoDx/xbf6v8vFT7o7L2qTyz8hit oKCS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tL8Ha+S9GYgjrg4z06ZwKklXkJKVAPiP7wE5juP2sOl bVcooI3JRAttvCFMfJKf0wlwXoL03kp4u2UMjWdVP/gHuKCxELS+XjB8OUtDZtP9eWWg3eISU M3xsOA9VELAYVOopFuLdXI+aCo7/qUmuDtUKBbIK8ZA8myTp/x9GeWw6YthWkjjqjTpMgxrE5 kOcaCVY2Cl4g5w0cODFb8K3oB2Dxk5yeq0g5J2/M6ibtuT8YGpku9IyAnP5AM8CYa+ZOSi38n dq7QFOS27y3MB8= 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 Z214LmRlPgotLS0KIGRyaXZlcnMvdHR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