summaryrefslogtreecommitdiff
path: root/target
diff options
context:
space:
mode:
authorJohn Crispin <john@phrozen.org>2018-02-20 10:32:58 +0100
committerJohn Crispin <john@phrozen.org>2018-02-20 10:33:47 +0100
commitba5f700d7fbbbf861d60f45710467f62c784aed4 (patch)
treedff300cf909073e76d71cffed38644d2a32cc189 /target
parent1263d07b89308dbf0330afe8cf4a33504802b028 (diff)
downloadmtk-20170518-ba5f700d7fbbbf861d60f45710467f62c784aed4.zip
mtk-20170518-ba5f700d7fbbbf861d60f45710467f62c784aed4.tar.gz
mtk-20170518-ba5f700d7fbbbf861d60f45710467f62c784aed4.tar.bz2
kernel: ar83xx: remove stray leading space
Signed-off-by: John Crispin <john@phrozen.org>
Diffstat (limited to 'target')
-rw-r--r--target/linux/generic/files/drivers/net/phy/ar8327.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/target/linux/generic/files/drivers/net/phy/ar8327.c b/target/linux/generic/files/drivers/net/phy/ar8327.c
index f52f85a..96267d4 100644
--- a/target/linux/generic/files/drivers/net/phy/ar8327.c
+++ b/target/linux/generic/files/drivers/net/phy/ar8327.c
@@ -926,7 +926,7 @@ ar8327_setup_port(struct ar8xxx_priv *priv, int port, u32 members)
t = pvid << AR8327_PORT_VLAN0_DEF_SVID_S;
t |= pvid << AR8327_PORT_VLAN0_DEF_CVID_S;
- if (priv->vlan && priv->port_vlan_prio[port] > 0) {
+ if (priv->vlan && priv->port_vlan_prio[port]) {
u32 prio = priv->port_vlan_prio[port];
t |= prio << AR8327_PORT_VLAN0_DEF_SPRI_S;
@@ -936,7 +936,7 @@ ar8327_setup_port(struct ar8xxx_priv *priv, int port, u32 members)
t = AR8327_PORT_VLAN1_PORT_VLAN_PROP;
t |= egress << AR8327_PORT_VLAN1_OUT_MODE_S;
- if (priv->vlan && priv->port_vlan_prio[port] > 0)
+ if (priv->vlan && priv->port_vlan_prio[port])
t |= AR8327_PORT_VLAN1_VLAN_PRI_PROP;
ar8xxx_write(priv, AR8327_REG_PORT_VLAN1(port), t);
@@ -1354,7 +1354,7 @@ static const struct switch_attr ar8327_sw_attr_globals[] = {
.set = ar8xxx_sw_set_mirror_source_port,
.get = ar8xxx_sw_get_mirror_source_port,
.max = AR8327_NUM_PORTS - 1
- },
+ },
{
.type = SWITCH_TYPE_INT,
.name = "arl_age_time",