diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2018-04-02 19:24:14 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-04-04 11:15:49 -0400 |
commit | 18bd5949e5c825f29f022b9ac46474d2e95b4eb0 (patch) | |
tree | 7d7d653bc98f262974dea5e74a68475cc5112aee | |
parent | 861690d0543949633c97ebe9b2fcd55c27b9bda4 (diff) |
net: dsa: mt7530: Use NULL instead of plain integer
We would be passing 0 instead of NULL as the rsp argument to
mt7530_fdb_cmd(), fix that.
Fixes: b8f126a8d543 ("net-next: dsa: add dsa support for Mediatek MT7530 switch")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Acked-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/dsa/mt7530.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/dsa/mt7530.c b/drivers/net/dsa/mt7530.c index d244c41898dd..80a4dbc3a499 100644 --- a/drivers/net/dsa/mt7530.c +++ b/drivers/net/dsa/mt7530.c | |||
@@ -917,7 +917,7 @@ mt7530_port_fdb_add(struct dsa_switch *ds, int port, | |||
917 | 917 | ||
918 | mutex_lock(&priv->reg_mutex); | 918 | mutex_lock(&priv->reg_mutex); |
919 | mt7530_fdb_write(priv, vid, port_mask, addr, -1, STATIC_ENT); | 919 | mt7530_fdb_write(priv, vid, port_mask, addr, -1, STATIC_ENT); |
920 | ret = mt7530_fdb_cmd(priv, MT7530_FDB_WRITE, 0); | 920 | ret = mt7530_fdb_cmd(priv, MT7530_FDB_WRITE, NULL); |
921 | mutex_unlock(&priv->reg_mutex); | 921 | mutex_unlock(&priv->reg_mutex); |
922 | 922 | ||
923 | return ret; | 923 | return ret; |
@@ -933,7 +933,7 @@ mt7530_port_fdb_del(struct dsa_switch *ds, int port, | |||
933 | 933 | ||
934 | mutex_lock(&priv->reg_mutex); | 934 | mutex_lock(&priv->reg_mutex); |
935 | mt7530_fdb_write(priv, vid, port_mask, addr, -1, STATIC_EMP); | 935 | mt7530_fdb_write(priv, vid, port_mask, addr, -1, STATIC_EMP); |
936 | ret = mt7530_fdb_cmd(priv, MT7530_FDB_WRITE, 0); | 936 | ret = mt7530_fdb_cmd(priv, MT7530_FDB_WRITE, NULL); |
937 | mutex_unlock(&priv->reg_mutex); | 937 | mutex_unlock(&priv->reg_mutex); |
938 | 938 | ||
939 | return ret; | 939 | return ret; |
@@ -1293,7 +1293,7 @@ mt7530_setup(struct dsa_switch *ds) | |||
1293 | } | 1293 | } |
1294 | 1294 | ||
1295 | /* Flush the FDB table */ | 1295 | /* Flush the FDB table */ |
1296 | ret = mt7530_fdb_cmd(priv, MT7530_FDB_FLUSH, 0); | 1296 | ret = mt7530_fdb_cmd(priv, MT7530_FDB_FLUSH, NULL); |
1297 | if (ret < 0) | 1297 | if (ret < 0) |
1298 | return ret; | 1298 | return ret; |
1299 | 1299 | ||