Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp5584338pxb; Mon, 14 Feb 2022 02:39:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJzDhWj67Ne83gVVzcAPp+S77gLU73C8VcD6BubByoLTVufQLS8zyM11rq4aYiof+vPZ0hx1 X-Received: by 2002:a05:6a00:1682:: with SMTP id k2mr13916063pfc.69.1644835194228; Mon, 14 Feb 2022 02:39:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644835194; cv=none; d=google.com; s=arc-20160816; b=UCgLLj68xLlYjnwHVzAtGpbLG2c1hHyukDgXA4u1509KgvPPxO2Xwt1GnLJW72hNnx FWeY1iX/PDrWjowV4gNA8rLm0desnH6OHjoH4tnp4dLzkTFTl2esgodYFCDmaVsKIrS/ tlVLz6cnILIi+8cqNyf5ZJ/7gkpOcfpm63yvrCpPEUlxYiY8FLZAysGap6MRmu4PUDpZ iG2hVwHHQ8T6sk1aDWTrz7EG1txnRPxeSPQbQe4nM9YWZum3/U9SWEyV8WCusbVCKuiz SMuaoxFOL/lLpnOSyq//8gR21LdvAOwoCb0VBpdkPTJsne8yw3Rz9+d/Ff1zIN8EQ8Gv YeVA== 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=uj5taIEdJ6Lv1V75u7KWN5Qj+Nh06Is1dtaFBls+PDY=; b=K5k7GLUIo0Ycl4yhAKXaPzynUPbovqdvZ7rN00XOCx/wfVIQaNY/s43pOJZIlwTw3f e6AmKfaRssghJGeYfwz/LAA9WRnTcSriUIdbuz5MBgk7YOy10xgZP2mjXMni0C4gffrd TgXo7C7DkX7UhWxI3E+F1DJRUNwt/hOzdhFjoHS7lja9AeldkVWSa9wwxuy58qVzVq/O hi/vXxyvksMGZmjtt6um6kxZdT90zMC/jhQcCoOsd3uYYinG1/QaUi2aQcGhlRBDjxz+ Nz42abl76b00QBqStGaWD2HrL5zVZgB5g/lhacK8Mn1/L6UAcOvBf/1zhIJkhf5Gk7MT GJaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=CTG8Sw17; 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 w1si9390785pgq.756.2022.02.14.02.39.39; Mon, 14 Feb 2022 02:39:54 -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=CTG8Sw17; 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 S238680AbiBMWeE (ORCPT + 99 others); Sun, 13 Feb 2022 17:34:04 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:52332 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238637AbiBMWd5 (ORCPT ); Sun, 13 Feb 2022 17:33:57 -0500 X-Greylist: delayed 323 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Sun, 13 Feb 2022 14:33:51 PST Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1362454BD6; Sun, 13 Feb 2022 14:33:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1644791629; bh=uj5taIEdJ6Lv1V75u7KWN5Qj+Nh06Is1dtaFBls+PDY=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=CTG8Sw17VXH1dXBgd7XO8lA5iO8LRKSx/RwMomjWsTby1GNXsn1dmqQKglxi6i4V5 H1tG7i6TqgeNMZhkzW8JqpvJVTNx0BNfaDQdh+A9KiKOSj+JQyGbGSFvZpxVwivuBl Mwf15NzvvAvWfO3pdssL8YICVFEHkNaMzxs7fhk0= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from Venus.fritz.box ([149.172.237.68]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MMXQF-1ncPlv1wIB-00Jbos; Sun, 13 Feb 2022 23:28:08 +0100 From: Lino Sanfilippo To: gregkh@linuxfoundation.org, jirislaby@kernel.org 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, Lino Sanfilippo Subject: [PATCH 5/9] serial: omap: remove redundant code in rs485_config Date: Sun, 13 Feb 2022 23:27:33 +0100 Message-Id: <20220213222737.15709-6-LinoSanfilippo@gmx.de> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220213222737.15709-1-LinoSanfilippo@gmx.de> References: <20220213222737.15709-1-LinoSanfilippo@gmx.de> MIME-Version: 1.0 Content-Transfer-Encoding: base64 X-Provags-ID: V03:K1:X9sHYupZQvrcHlgLqYrbYPQwoslXDrcL7/CgGZCd85CUEbScmXQ dgeYkd3PBvcxbJEL7xGC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ILfl4lYjKnk0fiM7b6 qtyPmOsDTsrz9IlLhtBjaqMvEyDv1U+n7rWQh8FXB0Ku9dmpWHrKVNXVRA2W7ti8Lo/WJz4v/ oce4IZdAN2cet+wkLSc8aA81VdKo1Yv7O5RBXPorVJNC/zAH9EL25qGl33MGriKV8dU4gk0ee 5CgXdm6RIo2kYzQMke3TTd2ETg+M+CErJ+s/2ac/rrX2W4mqjISV0GGm5kR3BG1cnOpn68YsZ gDA665Gp9zMLCc= 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 V2hlbiBSUzQ4NSBpcyBjb25maWd1cmVkIGJ5IHVzZXJzcGFjZSB0aGUgc2VyaWFsIGNvcmUgYWxy ZWFkeSBjbGFtcHMgdGhlClJUUyBkZWxheXMgYW5kIGFzc2lnbnMgdGhlIGNvbmZpZ3VyYXRpb24g dG8gdGhlIHVhcnQgcG9ydC4gU28gcmVtb3ZlIHRoZXNlCnRhc2tzIGZyb20gdGhlIGNvZGUgb2Yg dGhlIGRyaXZlcnMgcnM0ODVfY29uZmlnIGZ1bmN0aW9uIHRvIGF2b2lkCnJlZHVuZGFuY3kuCgpT aWduZWQtb2ZmLWJ5OiBMaW5vIFNhbmZpbGlwcG8gPExpbm9TYW5maWxpcHBvQGdteC5kZT4KLS0t CiBkcml2ZXJzL3R0eS9zZXJpYWwvb21hcC1zZXJpYWwuYyB8IDEzICsrKy0tLS0tLS0tLS0KIDEg ZmlsZSBjaGFuZ2VkLCAzIGluc2VydGlvbnMoKyksIDEwI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