diff options
author | Bin Meng | 2021-11-01 14:15:10 +0800 |
---|---|---|
committer | Ramon Fried | 2021-11-23 09:57:56 +0200 |
commit | c7ae46efdcf42317e3e57d0f14e844c551691ab9 (patch) | |
tree | dff25b0c6fe9967a88a93462ec58708b2016c933 | |
parent | d5ba6188dfbf6bb68354bec86e483623f1f6dae2 (diff) |
net: dsa: Use true instead of 1 in the set_promisc() call
set_promisc() call accepts the parameter of a bool type. Make it
clear by using true instead of 1.
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
-rw-r--r-- | net/dsa-uclass.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/dsa-uclass.c b/net/dsa-uclass.c index 7a465b10993..606b1539a77 100644 --- a/net/dsa-uclass.c +++ b/net/dsa-uclass.c @@ -270,7 +270,7 @@ static void dsa_port_set_hwaddr(struct udevice *pdev, struct udevice *master) struct eth_ops *eth_ops = eth_get_ops(master); if (eth_ops->set_promisc) - eth_ops->set_promisc(master, 1); + eth_ops->set_promisc(master, true); return; } |