Received: by 2002:a05:6a10:87d6:0:0:0:0 with SMTP id g22csp717265pxr; Mon, 11 Apr 2022 05:32:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxkz/UYFQISfqwDwBKwxZe8d81dNvY+RQtdJyLsF3pqFvngJrF/MtBcowr8531FLRdmf1M3 X-Received: by 2002:a65:63cf:0:b0:39d:40ed:ced6 with SMTP id n15-20020a6563cf000000b0039d40edced6mr5822939pgv.77.1649680338823; Mon, 11 Apr 2022 05:32:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649680338; cv=none; d=google.com; s=arc-20160816; b=l98VryIfmVoIQJVnl1O22i/OP39DCMuZSppBeNzNYN+FwYhQrT0EExbgkn8Sw5cz6P 9CLpcc8kW+Ce6o0em28RI+QzdiXnzj/f/AQ0QdkXjNtoIttlQXEJIIbJ5OA65p7PU4lG h5Ar6HB50mgv1ULvjsMlNB5C5ZfyN6ZcdbL42i4QXL95MbiMPQpfvJUszyWETligzvAi Ur5QH0m65OlP29oE+NchOm/iTTAZB8BuZO+cJO4zyoDIpjtyAYw9x/gROdaN/g9v5YG3 rvxT6lzXVuf4S8ZCR1aulYD7+eDduRIn4zsCN8CZ5Xnlg5emL62bLtLV8sU5cJQ+fmMF s9pg== 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=Xte7M1bRnOD5NSoYEInJ1WmZeV38/NX0bKYXCdSsO2o=; b=h/A/yC1ITWSPwrutproTDvTAynjRbUAOpwwXAxLoq07M32Cy2em/yHfwHzTvDJrgin sOaTBwU2vMrNfPtndDJcecU1Y3WrdyhXuzwfrIhz/VNdHsBglBiK2nK+vXKkLWPSC9m0 Me5EH+Ttn40jYVCAFnHVzI3Q+H+XnDhufVLU1EObDdrZ2UAZnZDdT1j7wk+D9rzkWGYG Zn+sSPFeMavFwN5VBV+b7oy92FfPJSSmVHNaLKqBQGu1AUa10DDnma75V4fYn5KIJw28 Hn3DePtcLjKdnwrrp7nniNbyOkr+MTenbe5JmXYXLXB/LqNV9Qqj/cSbqREnY3+CI4ZD RL0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b="DVGhTTm/"; 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 g3-20020a056a001a0300b004fa3a8dff5bsi9603581pfv.18.2022.04.11.05.32.03; Mon, 11 Apr 2022 05:32:18 -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="DVGhTTm/"; 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 S232897AbiDJKuH (ORCPT + 99 others); Sun, 10 Apr 2022 06:50:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41778 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237177AbiDJKty (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 5990652E70; 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=Xte7M1bRnOD5NSoYEInJ1WmZeV38/NX0bKYXCdSsO2o=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=DVGhTTm/NXu0o+/g2bdw8brZgxrBTHybd3BWNaJh1kJr2rsKXxHb3m9oR4uxcIDSk ui93ZJ3LM5rRgM0fSH4BPQjJVhsr8rX1EK1jNYOiQ7PwLzRsPySIYR1BWW9QydItQR L3DBIlxHkupItI1WSbl1J87DGbDB0eQBqzAjjP3U= 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 1MOREi-1nKJHm0RKQ-00PwU8; 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 2/9] serial: amba-pl011: remove redundant code in rs485_config Date: Sun, 10 Apr 2022 12:46:35 +0200 Message-Id: <20220410104642.32195-3-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:5XcnLtG0AFB8aIZrVZAD7/6S88KFrH/NQwP2XxSs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fwXH+OFA0oVB7zornhfyg6uzEj61EZIaej977b+iPbp pScoCIUdz72M/moKPwD8d1P2WGXOTilrl3lyTVcZ15sICMj64nJ6GTST7vu0tuGwEQU+flnt1 ljDSXQyHZEUhyS/TUcy9pGMteXKB5eb67qX3BH44tvwRpmcwvz8paM69/drwkTw6fSytAfzZy lL4IDyAYLKCAINdeeyljVfHKKrnY4bVGVO38Tto9bb7DVAXbdWUjMmzSbRPvJh/u/qmzlR82Z r/gj5BTfWTmpSo= 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 aWcoKSBmdW5jdGlvbgp0byBhdm9pZCByZWR1bmRhbmN5LgoKU2lnbmVkLW9mZi1ieTog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