Received: by 2002:a05:6a10:87d6:0:0:0:0 with SMTP id g22csp836498pxr; Mon, 11 Apr 2022 08:23:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzC/5OfTzsHsK7yRCYT6WQ4X10qGuOQTklnxC9z43tI8AYSeS5UK9c+6k5lY/vJF+slqYzf X-Received: by 2002:aa7:ce11:0:b0:41d:5b84:eecd with SMTP id d17-20020aa7ce11000000b0041d5b84eecdmr14927892edv.15.1649690603932; Mon, 11 Apr 2022 08:23:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649690603; cv=none; d=google.com; s=arc-20160816; b=LwdFk356bQTlj3kyphorQpDrZW6RygXBlIvDRDKSIr+Z54YLTwoWysbCsO/EUU3mvi fAf/LLGkKxsZdd0MjGxhrflKAvIoyvPLEvNzf3OWP8kDXnegCSR0Zy1RfRntFti6poi2 8FrE2uglVzhHes4/C8OM8naVYVjBz7+ZfYVf64wvA4/vEqfSpxamXiuFJWmgSaL27W3I /QSc5OpAaUt3KCmV8QYVjyCZqUnmJmmbKAkzBsYskeskceI+Ogz2GdTdKD7+fRKh/R9J sz2emHUPUDdlKVxj4o2lJoLESeA3whsdxVCbJYoJLGoO0AqmsY++/PINTukJAM5GbtBV YZNg== 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=lkxJVJmba/8nGWmkZt8VLyvvaLEgdx0YvxHumaFHroI=; b=zTF52FndorF+yaIm3h3cI8KO6ru/Ai8ykFkbaosWvTo4lYzOpY19O/6Tb2t86ZVzXj caP7M/Z/SfTrbSst6zttsijCay2JpJcIKfrGRqASvcTW6+iqGxQphufPp+ljws7SCZbN UDns47DUM81yV6WIhF9Zs3wdFcXICabEo/ppgzlEg6s+7arnYaE75//URevEKtVMhfyx XWQCdy80ZPK8PdRv6wnZXph4D1iYESyYCl8lkRklqWBtt/0OfP3nRUmT8c+ZJ8Zts8TC 1gr+P4r+K5i7M+vJVcTmojyE+mKFgswJ0sfOVO/Ay9L9aBMWCcn8s9yskhVu0rUCncWt VLmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=jDJ18xjT; 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 u11-20020a170906124b00b006e7f5b1fb91si6435937eja.370.2022.04.11.08.22.56; Mon, 11 Apr 2022 08:23:23 -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=jDJ18xjT; 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 S237566AbiDJKuO (ORCPT + 99 others); Sun, 10 Apr 2022 06:50:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41780 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237063AbiDJKty (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 59A30532E9; Sun, 10 Apr 2022 03:47:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1649587636; bh=lkxJVJmba/8nGWmkZt8VLyvvaLEgdx0YvxHumaFHroI=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=jDJ18xjT48BEajopxGlSKFpbKHA+3XowB+XmZzxZFcGrtKYV+DeU5HXDpMRoHRX42 cLWreO79tiZssHyxeMPMAroFC/+XLbP4/M8hi1wC6+hCfwB6LRydeDYYAIixkN4UZs kXYGtNLUfaO8odIMMfCgEVbBLVH7A0RrW8+t9iSU= 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 1MgNcz-1oBAp12tBf-00ht0f; Sun, 10 Apr 2022 12:47:16 +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 3/9] serial: stm32: remove redundant code in rs485_config Date: Sun, 10 Apr 2022 12:46:36 +0200 Message-Id: <20220410104642.32195-4-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:J+WiHeBDacS1zu76ddyWcxiEI6alS3VWYM45BJKJNo7Z/NgiA24 DyRk1Uw03xCS1+EyxzLFhwIJ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nKGoBsny1nFDebja/vM6ZV V0mUQs976GRQzQC7XcC/NyfDdj2/azWhDmabHmdwMBEJ/OIpti4XNSSSmSJMX3MdDj0w/RloO SEBpLhFvfBrydzl71TvQpbSDs/L/tkytN4WVWD+iNX1GObHXHbEfpyAT4hI/XIQfD9bnwBDD/ jHMlogCNG7Z7GAh2ymyReSg82VF4ssbfIzfaqcwUJW5vJrwm145AYhtAz6EaQiFsOqb6zsHP9 O2+3XLkCPQmA+E= 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 Z214LmRlPgotLS0KIGRyaXZlcnMvdHR5L3NlcmlhbC9zdG0zMi11c2FydC5jIHwgOSArKy0tLS0t L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