Message ID | 20230331214549.756660-6-ahalaney@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DEADFC76196 for <linux-arm-kernel@archiver.kernel.org>; Fri, 31 Mar 2023 21:47:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=sP9IWiGUxrrDhsS7ILR2VJR4lDN7+9OhRRFoY5x19FI=; b=1eDQMPCkmB4DUR yi/nTR9smtHAXGBvUL2wFD5z6Sc4lJAidNNWmETaf6ygbPbFDspZ4ffJL8SCYrXhZRhJ/Q/zCm8/B 4m9bcpC82MuECrRFs1+7wBoafpzVw8/K/afpKoExmj1F8/GcYNFvcvaiSi5ieCfB2Ty4vp2JEHS/e KeJBCCCwJHpZzF6Co5IJKOv2NZNj68VKVIAGgXaXvxUGOPGDhkhRDdn4bRX8cyk+RgDdcltE0pEA+ zq1rPSRdoLarInWZ4kuLNHxFrFd54Z5GTXaWfZ8a5fTsIm6FgO5x5wVQkkN/mWIzE31jsSZ5gjyiz bC8XGhgAw1ZVegBhrFcw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1piMa6-008xBl-15; Fri, 31 Mar 2023 21:46:46 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1piMZy-008x7X-1N for linux-arm-kernel@lists.infradead.org; Fri, 31 Mar 2023 21:46:39 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1680299197; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=lI/wTNKANfMxYvWqJ0umcXHaHwboSDwAnj65voZzExc=; b=aZPIfWbRH629N3bWBg7EdH/IF2Rqv1SshyrHiZ0txcCmQXA205baMtqzzUjj7Nf3SowLqG V0jeS9iEW1UyZ877ztoHOletiEaTDoHc/wRzT/eJhgy29q2x1G2wRXzF87tRqNIxT/mAY9 9LTmLM+OoIO/TDXIXQtkVn9iV9CjPbs= Received: from mail-oi1-f198.google.com (mail-oi1-f198.google.com [209.85.167.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-403-aQql--PgMymLr-4j7qqfYw-1; Fri, 31 Mar 2023 17:46:28 -0400 X-MC-Unique: aQql--PgMymLr-4j7qqfYw-1 Received: by mail-oi1-f198.google.com with SMTP id s63-20020acadb42000000b00388f0de0c51so5056076oig.12 for <linux-arm-kernel@lists.infradead.org>; Fri, 31 Mar 2023 14:46:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680299187; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=lI/wTNKANfMxYvWqJ0umcXHaHwboSDwAnj65voZzExc=; b=do9UZN46MFc0sHuoxd59OZ28HQ3VmrFBmUTsuc4peRp+uk0b8fE0Wx5MVK/u6ZnkBN MlonCjhwWJUxwmZL4UANrQEHciRW8dt9rrxO/lSS8FfcG5BFFsIoBCnkpOabKnow3Jc0 3FZYH5CELk86dlsPn9zxjU6hxPVc1GL3ww1ridpwhGoSd71gAssQ5OVHpLvF8hjf+1Wn OBp4QZWVUULGC6pAlpSS/o4fifXVZlrstpV13MCWR+muyoUC3zimswYHctpjrazHP2v3 TdW8ZlWGoVNKekVPF7EUqGlvFcMnE6X59gdXZy2e/RhsQNfwrsKULtVVmcDqz1BlZbI0 GZBw== X-Gm-Message-State: AO0yUKXOPaOwOsmnwAg9hALdWUnm1oLqKrvoGiaHJBvK1wJu8weiKbHg FE2rXps5OUOHXtHqDHR1CleoGa1fqgK+M+KGNIxrfsAwk9yVJ59rmzMGaB08Op65MgMkx1HLSys t+VM5MsV/oPtH5nr59A9BioMOn2cXzd2s/H8= X-Received: by 2002:a05:6808:4246:b0:384:41e3:75d0 with SMTP id dp6-20020a056808424600b0038441e375d0mr13650084oib.21.1680299187643; Fri, 31 Mar 2023 14:46:27 -0700 (PDT) X-Google-Smtp-Source: AK7set+cnC/lvq+HQYTkPySHxCv7Oqj79qtnzLha/xwBat64KUQy8cafpalczgXYXQNna9WcIF3elQ== X-Received: by 2002:a05:6808:4246:b0:384:41e3:75d0 with SMTP id dp6-20020a056808424600b0038441e375d0mr13650046oib.21.1680299187462; Fri, 31 Mar 2023 14:46:27 -0700 (PDT) Received: from halaney-x13s.attlocal.net (104-53-165-62.lightspeed.stlsmo.sbcglobal.net. [104.53.165.62]) by smtp.gmail.com with ESMTPSA id x80-20020a4a4153000000b0053d9be4be68sm1328531ooa.19.2023.03.31.14.46.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 Mar 2023 14:46:27 -0700 (PDT) From: Andrew Halaney <ahalaney@redhat.com> To: linux-kernel@vger.kernel.org Cc: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, vkoul@kernel.org, bhupesh.sharma@linaro.org, wens@csie.org, jernej.skrabec@gmail.com, samuel@sholland.org, mturquette@baylibre.com, peppe.cavallaro@st.com, alexandre.torgue@foss.st.com, joabreu@synopsys.com, mcoquelin.stm32@gmail.com, richardcochran@gmail.com, linux@armlinux.org.uk, veekhee@apple.com, tee.min.tan@linux.intel.com, mohammad.athari.ismail@intel.com, jonathanh@nvidia.com, ruppala@nvidia.com, bmasney@redhat.com, andrey.konovalov@linaro.org, linux-arm-msm@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, ncai@quicinc.com, jsuraj@qti.qualcomm.com, hisunil@quicinc.com, echanude@redhat.com, Andrew Halaney <ahalaney@redhat.com> Subject: [PATCH net-next v3 05/12] net: stmmac: Remove unnecessary if statement brackets Date: Fri, 31 Mar 2023 16:45:42 -0500 Message-Id: <20230331214549.756660-6-ahalaney@redhat.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230331214549.756660-1-ahalaney@redhat.com> References: <20230331214549.756660-1-ahalaney@redhat.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230331_144638_538801_070D38FA X-CRM114-Status: GOOD ( 12.49 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
Add EMAC3 support for sa8540p-ride
|
expand
|
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c index 21aaa2730ac8..6807c4c1a0a2 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c @@ -281,9 +281,8 @@ static int stmmac_mdio_read_c22(struct mii_bus *bus, int phyaddr, int phyreg) value |= (phyreg << priv->hw->mii.reg_shift) & priv->hw->mii.reg_mask; value |= (priv->clk_csr << priv->hw->mii.clk_csr_shift) & priv->hw->mii.clk_csr_mask; - if (priv->plat->has_gmac4) { + if (priv->plat->has_gmac4) value |= MII_GMAC4_READ; - } data = stmmac_mdio_read(priv, data, value);
The brackets are unnecessary, remove them to match the coding style used in the kernel. Signed-off-by: Andrew Halaney <ahalaney@redhat.com> --- Changes since v2: * None Changes since v1: * This patch is split from the next patch since it is a logically different change (Andrew Lunn) drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)