Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1661577rwl; Fri, 31 Mar 2023 14:50:40 -0700 (PDT) X-Google-Smtp-Source: AKy350apZ0q4sRi5mr7inuOJg6bkHZIe/dXvplv1WBb1DsiTrcJYMKyNSRq8vq2Xxs1PzPcLv1l+ X-Received: by 2002:a17:906:d3:b0:947:bff2:1c2b with SMTP id 19-20020a17090600d300b00947bff21c2bmr2558284eji.1.1680299440464; Fri, 31 Mar 2023 14:50:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680299440; cv=none; d=google.com; s=arc-20160816; b=nMtiOfLqpx1kl9OqOpbe9Un95qTIZ2/cJh/v2wEmrcF8j3W61CpRaAshjktJIfYJ+N T307AB4w44fCILz+vMWHc90GI9wwjyLmzqM92BLfXTsdcjdgdojz92M2SlDOSBy5hxq5 +1pDHOeKWKF2zytUOJZ1qPjW7BBKnamok3X7Attsd3oWxrywO1kL60306mpp/0ttS8Z/ KAATXoQiEsow/U/w+90esRjuQ6rO6+0DuDoli9iLVdDrUXmPjUQxRDobV4yfZ3ySEAZP LSOo7SDRqAxREBZnebUhO1l+H2KZEbseKtYuPEomY6tPpBZAQf4w+8jA7KXlC5rJK92b bX3g== 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=lI/wTNKANfMxYvWqJ0umcXHaHwboSDwAnj65voZzExc=; b=Xw6y2Hiq0Nb7/UOHkLxnyYyshTvbm8xDD71JkjqSCZjptrIeZIgy0hsJ3IXY6l5MyD 8tTBCRS8Yb/epQwpEicawSAiPdnN6njIcmN4elSS6hJNeBYBvQL98E8TsrDMAuleSFAP AlMr7GY98n1znI8OhkBisUs6Su/RRm004BQRiFVOWVebAmKym1G0IVM7ex1ewpqdiz7P P3IOgHbY+kZohpeWb+qUtHx++Q7IP6kxY5yxq+2TLvl1vvzkaHeqDvLlTDASgClDWCnX WXDUggxbzYheGZeS5343TTfBonSEbp1MUT+c1biUKb4sjr/AmcriWoPMDxlgpqwJPDHe 8DiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=C2+NuWp2; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bl2-20020a170906c24200b00937a2b0691asi2738041ejb.298.2023.03.31.14.50.16; Fri, 31 Mar 2023 14:50:40 -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=@redhat.com header.s=mimecast20190719 header.b=C2+NuWp2; 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=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233349AbjCaVsz (ORCPT + 99 others); Fri, 31 Mar 2023 17:48:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233259AbjCaVs0 (ORCPT ); Fri, 31 Mar 2023 17:48:26 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E838236AB for ; Fri, 31 Mar 2023 14:46:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1680299192; 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=C2+NuWp2EZXx6yahu2st7iw+PXdjRiDr87cpBLEbQ7qtWCI+f/Nbj4q2cMZ3HMeMgGZJgv YuMyUsmX/UsoLJ1Ky4ZpwHQUVaVySaUv54mwV7BN0qiKAfOOjEt1yxKSdQh902mAFVO7Ej zSsm6xG2aNI5lYm/dHOVjmiS3XbeEYM= Received: from mail-oi1-f200.google.com (mail-oi1-f200.google.com [209.85.167.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-433-yN5jlVquN26tq_78tDsSww-1; Fri, 31 Mar 2023 17:46:28 -0400 X-MC-Unique: yN5jlVquN26tq_78tDsSww-1 Received: by mail-oi1-f200.google.com with SMTP id s127-20020acaa985000000b003891d21e8c0so4748759oie.6 for ; 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=j8u9yHiS2YRJAFLqj/Wk/7H/dg6NGkIM/DXlZAOB8V/qOrqq+7r98wGn3MakYjCaJk sY1N5yb+2y7uYj5h4655NRo8f9CkhhoeynkQSa9MB62vG7Copd3ZWQb6oZFGi7BwI9l+ 9bXITN3ufiEOHQhfNjg4roqT6UMABgpKsKKQMHssYAjvNUtlRsYem0Xe9dd4kP1R4ZqH LPGCTCEhWlU9xpveSv/3QkimIgYwugygb3Fx0FflZxJapmhzehoNI1HfgmV4SLM+8/fP 6Cp73cyQpPJ2f4NqjFej/vsYJf49vy3m3Q1e3PUKv8Sh4jxfR9x8G56TeAnTKSnoIQhX Zjug== X-Gm-Message-State: AO0yUKXk/fEk/mS4LXSRtDDbPF2AZEdLm8GdpR4SW8LpHfjjatq5Izak 59wm9a1fWtbqUX5yAjZp1Q9smMtHX6ALu/FfSrSS2lfWoHNef2jl9IJJI3dIGS5BccRqSz9ub7x Aj9X87bR6WVf8ALjBXFAeM0BQdBMjzuSpC1k/f/ylpbnHipSgH4uvc9H+A7oVfY7pQhBlZ4NN+D SjDZNGIAwQ+II= X-Received: by 2002:a05:6808:4246:b0:384:41e3:75d0 with SMTP id dp6-20020a056808424600b0038441e375d0mr13650089oib.21.1680299187675; Fri, 31 Mar 2023 14:46:27 -0700 (PDT) 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 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 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 Content-type: text/plain Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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 The brackets are unnecessary, remove them to match the coding style used in the kernel. Signed-off-by: Andrew Halaney --- 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(-) 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); -- 2.39.2