Skip to content

Commit

Permalink
net: dsa: qca8k: Remove redundant parentheses
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Michal Vokáč authored and David S. Miller committed May 23, 2018
1 parent 63a786a commit 38222b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/dsa/qca8k.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 38222b1

Please sign in to comment.