Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2918365pxb; Sat, 6 Feb 2021 12:18:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJxqjwzCiXSRPS/ToXkvb/WZsA+tXO9Xx4rV4efcsQMQRvwYbKjen6nCv5hJD39lPpYFXjCC X-Received: by 2002:a05:6402:35ca:: with SMTP id z10mr9761852edc.186.1612642719802; Sat, 06 Feb 2021 12:18:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612642719; cv=none; d=google.com; s=arc-20160816; b=t1eZzf3cTWaVIgXYhsQDWVvte+5pGCSGrMuRAKmQg9jewwH76tOEnjm2h2cY1XzUM8 jsF9IGJdzIxkslmQ8yUzI0j7EZk0pGcRh5IwjSJ6AV567NUZNZBD+Msam/YG51/gpuQI OrLpT6JhGJttsoeVLp0kekO1AHLfQ/7kMg6xFDHQ5qZHePmwERcKUCcu2PH9DSB06kt4 N9I1cy/nR5E1+01ixsmxiOIGtqmNAU6CsBOCIKgjuy+ZHqScs6T0KQakwCjnhWNV0UbN CvMSUFRmpNYfxEHnnzlbsc/hrOttAMkYnmg0eWnYuwf3xLxA875CoBI50r7EfMMkiwRZ vUqw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=S7bAkgjej0tXs3CFsUSAY/E5YDxWGktGInnREXcyLhc=; b=XovBNgn/xaZDiC91SLEwg2UgT/cPT3Zj9h/6Pm2KtOc0vBZnFQmkGFgiLUPjwb4z00 2/XWKfouDUmPF1/sr26DcLy17Ghi9wfY1xkekA0wUH6Cs3yzEdaKJox8HNLVce/Qzm9e UI6NKmhwyhcT6T5xQslFJ7LWtMCsLMlM0xk/Tel0XCe4wNZpwHoQO5nYGrv7M906TpRK Pj/7NJvsxZ0/AdYRlznl7PujzsVJOygugQkGZU8C+x+aZoYwE+EA/P8cgPII/4VmKoLD NBt/H9E2q+7JctiL/IaWksUXIz1JJeFop+uqAvHpCt6Jm4aPNON7Z5SfYl0PXwjWnwQc Dyhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@philpotter-co-uk.20150623.gappssmtp.com header.s=20150623 header.b=JRm9VyOW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e11si8732726edz.97.2021.02.06.12.18.15; Sat, 06 Feb 2021 12:18:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@philpotter-co-uk.20150623.gappssmtp.com header.s=20150623 header.b=JRm9VyOW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229548AbhBFURt (ORCPT + 99 others); Sat, 6 Feb 2021 15:17:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39306 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229539AbhBFURt (ORCPT ); Sat, 6 Feb 2021 15:17:49 -0500 Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4891CC06174A for ; Sat, 6 Feb 2021 12:17:07 -0800 (PST) Received: by mail-wr1-x436.google.com with SMTP id 7so12204290wrz.0 for ; Sat, 06 Feb 2021 12:17:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=philpotter-co-uk.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=S7bAkgjej0tXs3CFsUSAY/E5YDxWGktGInnREXcyLhc=; b=JRm9VyOW91wbTaaDNqzXD9xGVo0wvRAxVi8/RRYuEX3Nocr0wsPcJopHJXtk9NbDDB TofS/oZQjeQVTeVlzhJHgBldlOhHBcut88aBQZV+Q6xyZPnEj6Kicz95RVFpC55qUp63 N5ba4Fk9fiGn4tUeThIcZwC+nKqK7zU2jM7LaaUWQYhkLjUwBkYESiNMvoe1KFcaC7FZ eYg3bCi9r56+97gSOOR/zPXuKUIqfOyVUuX1p5r7PcwWoE36TLMx6xAd4ZtiOaHs9AGw 2YbpRq4q7ACWFj7zNT2T78zfOlOdIhiwAZwKr4SeKh2Sq9iF2rQvgHNWZkdVq6AbmJvU Wtew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=S7bAkgjej0tXs3CFsUSAY/E5YDxWGktGInnREXcyLhc=; b=XpFIbe4W+prOGC3Xj1MRIHv/i4RNj08rEXXcKXPTRqE9br3JBYAkhXWs3THxt1Z1ds KXiHSTeBYATCHbeqyDoJ5Pw2eURLnzeKMHxhRE9qZ4L8diatLEAQIvuRQiKURcVU2EO7 lhaGFCBbkT5oYZuaRVUfnxPw16QiS+pIUQ+2TXwtQ3vxRfk6tJSpuqswO8OQy6Z5fURq ZPdbx9cOPyCgMYe1EQ09Cl87q8A8Ls5HVRNDYOc8ULKkG3dCzxg3Fv4hfqXLiw5BstoB y65oY/3gS5rIK9XO7o0zbQG/SXdu3GKFTkyzq+eOZux6RCVZB0Afju+iBRGqLI8ssZZb 34Wg== X-Gm-Message-State: AOAM532B3JGC2VlhKgb7yCM0KVEbk2mCBqJbS2ShikMZUnjEAEHVKm7S iEn4Rj/8FJr+833F6W0rr4nTGw== X-Received: by 2002:adf:dd92:: with SMTP id x18mr11902843wrl.4.1612642626070; Sat, 06 Feb 2021 12:17:06 -0800 (PST) Received: from localhost.localdomain (2.0.5.1.1.6.3.8.5.c.c.3.f.b.d.3.0.0.0.0.6.1.f.d.0.b.8.0.1.0.0.2.ip6.arpa. [2001:8b0:df16:0:3dbf:3cc5:8361:1502]) by smtp.gmail.com with ESMTPSA id d13sm17054668wrx.93.2021.02.06.12.17.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Feb 2021 12:17:05 -0800 (PST) From: Phillip Potter To: gregkh@linuxfoundation.org Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, alexander.sverdlin@nokia.com, f.fainelli@gmail.com, andrew@lunn.ch, davem@davemloft.net, chris.packham@alliedtelesis.co.nz Subject: [PATCH] staging: octeon: remove braces from single-line block Date: Sat, 6 Feb 2021 20:17:01 +0000 Message-Id: <20210206201701.5273-1-phil@philpotter.co.uk> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This removes the braces from the if statement that checks the physical node return value in cvm_oct_phy_setup_device, as this block contains only one statement. Fixes a style warning. Signed-off-by: Phillip Potter --- drivers/staging/octeon/ethernet-mdio.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/octeon/ethernet-mdio.c b/drivers/staging/octeon/ethernet-mdio.c index 0bf545849b11..b0fd083a5bf2 100644 --- a/drivers/staging/octeon/ethernet-mdio.c +++ b/drivers/staging/octeon/ethernet-mdio.c @@ -146,9 +146,8 @@ int cvm_oct_phy_setup_device(struct net_device *dev) goto no_phy; phy_node = of_parse_phandle(priv->of_node, "phy-handle", 0); - if (!phy_node && of_phy_is_fixed_link(priv->of_node)) { + if (!phy_node && of_phy_is_fixed_link(priv->of_node)) phy_node = of_node_get(priv->of_node); - } if (!phy_node) goto no_phy; -- 2.29.2