Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp4370783pxb; Mon, 21 Feb 2022 19:23:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJzy1iLV0zx/sQlR4vOF2tiw7We6LJrTbhPLvq/nQWpO0VRAWrx72XwZETEnwNmDBKfWjRCo X-Received: by 2002:a17:906:dfca:b0:6cc:a988:c311 with SMTP id jt10-20020a170906dfca00b006cca988c311mr17443970ejc.394.1645500173399; Mon, 21 Feb 2022 19:22:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645500173; cv=none; d=google.com; s=arc-20160816; b=ZzIsAkE4f4lLLiwBm17V7HdabDH+IhTPqymInUicJt2y9YKCDHTLeAzXLYw0B+xV4T IjqEHs/eZelyYPM2ZutucKzN4yz1zJzeWwfWVSLI2nM1R00muFdHErI0eYlh3hsTLETu CSD5xxQb4Mf4OPp6y6VMIUJVSaSnkKyklP3wlWC+qruxAw8oqHCHnZkrShRtqCbUPKza VsbRIAX/MeE5eOyunFkytD6dcPr119oRetR6/gySh7mEZ5vNPZ98MhrSEj4FtEGALWc0 Vu7g1svT1uOI3ZqKvGZV4tmoZyeKuUoLRCsCV6bmyD0RJ1SzUlZqBbp0MNMvux77d7OD nNCA== 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=KEo4sc077TnUumY/3jbiNcL70WXfdFpW/wOHZwtSo+c=; b=KsWrmigvlrN4pbSq3NTYvZl3tmFOi0Hv4Ojb2+GYdCFocwmQcyAnY3/H36cD4m4bbf kyiKe4uERQ7zRRUVe8c7wexSWNKQiBc38ao66BV2WfSIbVvc1vxwbhSrPkljzC8rEzF9 1h4asfjuCzbCAX/QWQ2Lw0QkRZVDnrfbqyuuwjod8cfsmvZJKazlIs6oP9kq57eMZGzS nCV83oog1wJY60Wl/FyNFotkfSyBiOy1h//vRdvyTT8pKaPKmJT9WLNbdGhxSHNO8bIz V5WobRIi1HNshPlbwdRm4vTk+f9itsewgoqKqdT2AmdTfZw3BpJy7+ErGlkuKI2R9exz 10OQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=R321iE05; 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 tc4si8760410ejc.265.2022.02.21.19.22.30; Mon, 21 Feb 2022 19:22:53 -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=R321iE05; 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 S238176AbiBVBQK (ORCPT + 99 others); Mon, 21 Feb 2022 20:16:10 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:52236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237093AbiBVBQC (ORCPT ); Mon, 21 Feb 2022 20:16:02 -0500 Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A391C24F37; Mon, 21 Feb 2022 17:15:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1645492507; bh=KEo4sc077TnUumY/3jbiNcL70WXfdFpW/wOHZwtSo+c=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=R321iE05JyltOvTziTJucz7Aha2pQui3BMZ5o3fES3OdohzSi5OMoPakHVdjD1VlB ZbT06e/aqiMoRzYJ3e2aRBl1G3gurFIxguG757H8IySbnvfX3EzmH8GUGjfUokgKe5 cbuUuEOFgTbGukGiaoI8e/pK0msdmRuDy+XckkkM= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from Venus.fritz.box ([149.172.237.68]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MysRk-1o9SNF0rOk-00vtVm; Tue, 22 Feb 2022 02:15:07 +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 v3 2/9] serial: amba-pl011: remove redundant code in rs485_config Date: Tue, 22 Feb 2022 02:14:26 +0100 Message-Id: <20220222011433.8761-3-LinoSanfilippo@gmx.de> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220222011433.8761-1-LinoSanfilippo@gmx.de> References: <20220222011433.8761-1-LinoSanfilippo@gmx.de> MIME-Version: 1.0 Content-Transfer-Encoding: base64 X-Provags-ID: V03:K1:MRCzCFZwVGuHxJ4XCUOnuQ+k6jJA6DTfVK0pMx7+grgupk352jS xmocgmDITGUQJKhjfKpuSW0zwubnakFfr3D4RUaDlmBh7Id8BQ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MnNH9ESFSoxMSbuvkOhKVlt+/7PFlGbuD9DpWK gjLhBrJzakLmqgoBZmdEuEFLbQvWdYJq+/Sp2Hs2g3AyoVlXV0Qq3DU8CEJ+oJd4cCeGNuMa5 u3hJib2lLJncip04WArDNIxJWL1A1wWiWsIxYevSbvGTS6PxmybpMxkZ0JnDbjUFFLUAKTkjI NBWMXhnMkbmiL0= 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 SW4gdWFydF9zZXRfcnM0ODVfY29uZmlnKCkgdGhlIHNlcmlhbCBjb3JlIGFscmVhZHkKCi0gZW5z dXJlcyB0aGF0IG9ubHkgb25lIG9mIGJvdGggb3B0aW9ucyBSVFMgb24gc2VuZCBvciBSVFMgYWZ0 ZXIgc2VuZCBpcwogIHNldAoKLSBudWxsaWZpZXMgdGhlIHBhZGRpbmcgZmllbGQgb2YgdGhlIHBh c3NlZCBzZXJpYWxfcnM0ODUgc3RydWN0CgotIGNsYW1wcyB0aGUgUlRTIGRlbGF5cwoKLSBhc3Np Z25zIHRoZSBwYXNzZWQgc2VyaWFsX3JzNDg1IHN0cnVjdCB0byB0aGUgdWFydCBwb3J0CgpTbyBy ZW1vdmUgdGhlc2UgdGFza3MgZnJvbSB0aGUgY29kZSBvZiB0aGUgZHJpdmVycyByczQ4NV9jb25m aWcoKSBmdW5jdGlvbgp0byBhdm9pZCByZWR1bmRhbmN5LgoKU2lnbmVkLW9mZi1ieTogTGlubyBT YW5maWxpcHBvIDxMaW5vU2FuZmlsaXBwb0BnbXguZGU+Ci0tLQogZ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