Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp935289imm; Thu, 4 Oct 2018 05:53:30 -0700 (PDT) X-Google-Smtp-Source: ACcGV606crUSWrJjkX5LAjNgmWnqHTbgwI40CGb+rEdAPY2sF2KFvWSc7g5quG5D7Nu3b15dL+ER X-Received: by 2002:a62:cac4:: with SMTP id y65-v6mr6626483pfk.27.1538657610258; Thu, 04 Oct 2018 05:53:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538657610; cv=none; d=google.com; s=arc-20160816; b=Cc8NnLdVAXvkWijjVoxc7WYAc12sUxi53r1GwS65M/7A5BSpwYr2icSVKT63tPWdnc Qa2jPnD0WYiHV72leB9zsVQC/P5BYhgreyIz6TrHE+NBs9vN6wnNHHQ5a9/sM0Dipbbs 81u02iaF11jIAwPTA8zKw3bifZmRMEafHUlrcNapI1k9d7xIoBSrmNVt0m0x93qcJfgl AbHsmC5zhcCHqi2GHnFemf97UiCCv73FKzHgA97uluCssSbzluePKUtLWzp90VC61SEv SzYdNQVozW2hbFZiLsAUbS4u71ygV/Zxj9pbBD7VZU4jzE8E+0NKTyI45GedGOdmBJQO pD9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=ZrsYSCAqPf935Lllp1VbK2vIynLsiGZYDsm4752Ezis=; b=BGvIlDxLG/cYl473jN0PJmBmJQ1aKa4GH+cUocv+qGWYFCUJGArn0I/HJQwAj0pvch V2Xnj9WFawSm85FVqR0MkTnT+Vbv4LH4kPHhv5VoHL+tadyAjQ8BzIA/jhsnX735+r27 eZyfCmQUfmycJXZLuwPGqjEXY5/xwGhzf9Ml7uJn/2NUu5SPwt7DitZrJTGeRLgDeMVv WQzEpclwjqLHTWcf+dxqH9eUE/ab6uW3HGulUo29Sp9jeW8V9HgHKV0NWGUQTJx+X9qD W43ADTr/So89jW//Zqko0ch7QYs9MoHbcN4IBHS/nDmI05TB3Cozrag3BNvvMU+Hh0dp dpGg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a16-v6si3754052pfi.34.2018.10.04.05.53.13; Thu, 04 Oct 2018 05:53:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727486AbeJDToL (ORCPT + 99 others); Thu, 4 Oct 2018 15:44:11 -0400 Received: from mail.bootlin.com ([62.4.15.54]:37528 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727310AbeJDToK (ORCPT ); Thu, 4 Oct 2018 15:44:10 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id BD72B207CC; Thu, 4 Oct 2018 14:50:59 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost.localdomain (AAubervilliers-681-1-28-153.w90-88.abo.wanadoo.fr [90.88.148.153]) by mail.bootlin.com (Postfix) with ESMTPSA id 7AF41207F3; Thu, 4 Oct 2018 14:50:49 +0200 (CEST) From: Quentin Schulz To: davem@davemloft.net, andrew@lunn.ch, f.fainelli@gmail.com Cc: allan.nielsen@microchip.com, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, thomas.petazzoni@bootlin.com, alexandre.belloni@bootlin.com, Quentin Schulz Subject: [PATCH net-next v2 4/6] net: phy: mscc: remove unneeded parenthesis Date: Thu, 4 Oct 2018 14:47:26 +0200 Message-Id: <20181004124728.9821-5-quentin.schulz@bootlin.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181004124728.9821-1-quentin.schulz@bootlin.com> References: <20181004124728.9821-1-quentin.schulz@bootlin.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The == operator precedes the || operator, so we can remove the parenthesis around (a == b) || (c == d). The condition is rather explicit and short so removing the parenthesis definitely does not make it harder to read. Reviewed-by: Florian Fainelli Reviewed-by: Andrew Lunn Signed-off-by: Quentin Schulz --- drivers/net/phy/mscc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/phy/mscc.c b/drivers/net/phy/mscc.c index f863a580308f..c136ed71110b 100644 --- a/drivers/net/phy/mscc.c +++ b/drivers/net/phy/mscc.c @@ -308,7 +308,7 @@ static int vsc85xx_mdix_set(struct phy_device *phydev, u8 mdix) u16 reg_val; reg_val = phy_read(phydev, MSCC_PHY_BYPASS_CONTROL); - if ((mdix == ETH_TP_MDI) || (mdix == ETH_TP_MDI_X)) { + if (mdix == ETH_TP_MDI || mdix == ETH_TP_MDI_X) { reg_val |= (DISABLE_PAIR_SWAP_CORR_MASK | DISABLE_POLARITY_CORR_MASK | DISABLE_HP_AUTO_MDIX_MASK); -- 2.17.1