summaryrefslogtreecommitdiff
path: root/drivers/net/dsa/qca8k.c
diff options
context:
space:
mode:
authorMichal Vokáč <vokac.m@gmail.com>2018-05-23 09:20:24 +0300
committerDavid S. Miller <davem@davemloft.net>2018-05-23 22:46:34 +0300
commit38222b1aacf39c92e72d42a809609c725f2e9f83 (patch)
tree31c999f43227e8f505745c3befe5daa5037e3723 /drivers/net/dsa/qca8k.c
parent63a786a31033a32cb89498c9bb4e6069ebe9f8b0 (diff)
downloadlinux-38222b1aacf39c92e72d42a809609c725f2e9f83.tar.xz
net: dsa: qca8k: Remove redundant parentheses
Fix warning reported by checkpatch. Signed-off-by: Michal Vokáč <michal.vokac@ysoft.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/qca8k.c')
-rw-r--r--drivers/net/dsa/qca8k.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/dsa/qca8k.c b/drivers/net/dsa/qca8k.c
index 46c178fb3fb9..cdcde7f8e0b2 100644
--- a/drivers/net/dsa/qca8k.c
+++ b/drivers/net/dsa/qca8k.c
@@ -468,7 +468,7 @@ qca8k_port_set_status(struct qca8k_priv *priv, int port, int enable)
u32 mask = QCA8K_PORT_STATUS_TXMAC | QCA8K_PORT_STATUS_RXMAC;
/* Port 0 and 6 have no internal PHY */
- if ((port > 0) && (port < 6))
+ if (port > 0 && port < 6)
mask |= QCA8K_PORT_STATUS_LINK_AUTO;
if (enable)