Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp5576443pxb; Mon, 14 Feb 2022 02:25:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJzsEHmV4tM8SVlAePhHHEW27JDAq1R48JVm+S6gze1ywRzr86ZzKZORZQ/q7vjuLS4+Y7po X-Received: by 2002:a05:6402:1d49:: with SMTP id dz9mr14092584edb.238.1644834333074; Mon, 14 Feb 2022 02:25:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644834333; cv=none; d=google.com; s=arc-20160816; b=HZp8FFzUd3yNL2i2ZrsMy1EEfcUnGRxNeWaUnBm5vwP5igjpST64Jw3BOrqddXfOse JRb7fb9cH3uAEEI3AjeBaDXHXFHscZgA7++X5EB5RHbIN9BkQPLVAUvyfTSPJMccOO26 BQnpfbAr7kSTqx/tlTw2I2d6DQ8UJyTKeMQG7oHON5EWM0Y7FrvHPXRaJjjw9AXnf1EF 45DGJLuLisd9ttR0OFfCbnDeuUeWgUvfZVOjyG5JacxQUpQ6yNO/NriUCUDgOTF3BoNe 4heyNtGhO2zp3n2MgKGYkzucWkzf8/sxSScuZo5/2jAAoDOITJoq/kVuR4jgDyS/NKkW a3eg== 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=8vbc9twoUnggUtV10g7Mb1U2iiUeZXUFcj4fWWaxiwc=; b=K4BdjmBJdpB7OFZBoEbTTCiDIsB3hRlr8Kow+81VgYdCWaokyyJUVZh3fUeiLVNGEt YJsNTBJ6Y8++3O/2rrcjKLArSo0z5gf3jl92Shz74KGKUS7gG/BGoIDzaYdkW95tROG5 RiQ6WcrtePdEZr6yGG+D2iaoCHSGpyHY4V6hNuFbbLH9bJbfPe64BrhqezjbHYBm+Ini bfHwy9UCuSVQQeIUBoqEHX4ZM1FwrY/+pJ7JyVRuixrga87XAqSy3iqJ0iEN4/eOrF8c Ujjn3H28kDtnVev88w2ve78lxjMJ5IyztPEQiXWlA0YMIXar8qsYljkzj3IjwWryrXMd XAFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=KzjfhcAZ; 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 u7si18267728eju.675.2022.02.14.02.25.09; Mon, 14 Feb 2022 02:25:33 -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=KzjfhcAZ; 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 S238594AbiBMW2l (ORCPT + 99 others); Sun, 13 Feb 2022 17:28:41 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:50110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238583AbiBMW2g (ORCPT ); Sun, 13 Feb 2022 17:28:36 -0500 Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B9D354693; Sun, 13 Feb 2022 14:28:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1644791286; bh=8vbc9twoUnggUtV10g7Mb1U2iiUeZXUFcj4fWWaxiwc=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=KzjfhcAZczeP42Kc+7eSyADZ3vwREiZGBp9roVilY9ewt2ksqSuI/JvJg2j5kMVxa mJDR7n9ljR6OFNZ3KdB8vhU++9m8WQ/rMSzQELa4K0OgzDUbYM/bDEcT2TBNAGaquk vUaRBtGXKbKYyVlN/aGhNYikGke8j2X9kjaga7M4= 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 1Mz9Ux-1oEnO23kPb-00wEQc; Sun, 13 Feb 2022 23:28:06 +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 2/9] serial: amba-pl011: remove redundant code in rs485_config Date: Sun, 13 Feb 2022 23:27:30 +0100 Message-Id: <20220213222737.15709-3-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:c6+Ys0/CKTSgWjVeoHGhXE+C7sk8b465AsFJvqvT7hz8+wtDILI NE3k60+XHiuNHEj2TtJpphtCYkCMo4QEpfjehlyIIi44xqXykt7VEWB7Quwjm++QSW9C1ok c0kE/CShtmVL3c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xrkBwUKvJnKnSBGvbC8ybIYMy1Nb CAfcQ1+KoVarO2W2L1P5VZPyIucsCrCP3n8UaUAIZW3R8ra41iTBKZ4uuIgPZ/BrMy2TEbjUT spGalwnWvT8DIdqumYaFRpCpAjvrGbx/KtUvYOJ1h1Fn/KT1JUI0yW6PLNFfXWaNJilrNcEtI S8gqQvcwhLJ36g= 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 V2hlbiBSUzQ4NSBpcyBjb25maWd1cmVkIGJ5IHVzZXJzcGFjZSB0aGUgc2VyaWFsIGNvcmUgYWxy ZWFkeQoKLSBjaGVja3MgZm9yIHZhbGlkIFJUUyBzZXR0aW5ncwotIG51bGxpZmllcyB0aGUgcGFk ZGluZyBmaWVsZCBvZiB0aGUgcGFzc2VkIHNlcmlhbF9yczQ4NSBzdHJ1Y3QKLSBjbGFtcHMgdGhl IFJUUyBkZWxheXMKLSBhc3NpZ25zIHRoZSBwYXNzZWQgY29uZmlndXJhdGlvbiB0byB0aGUgdWFy dCBwb3J0IHN0cnVjdAoKU28gcmVtb3ZlIHRoZXNlIHRhc2tzIGZyb20gdGhlIGNvZGUgb2YgdGhl IHJzNDg1X2NvbmZpZyBmdW5jdGlvbiB0byBhdm9pZApyZWR1bmRhbmN5LgoKU2lnbmVkLW9mZi1i eTogTGlubyBTYW5maWxpcHBvIDxMaW5vU2FuZmlsaXBwb0BnbXguZGU+Ci0tLQogZHJpdmVycy90 dHkvc2VyaWFsL2FtYmEtcGwwMTEuYyB8IDE2ICstLS0tLS0tLS0tLS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