aboutsummaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2021-11-01 14:15:10 +0800
committerRamon Fried <rfried.dev@gmail.com>2021-11-23 09:57:56 +0200
commitc7ae46efdcf42317e3e57d0f14e844c551691ab9 (patch)
treedff25b0c6fe9967a88a93462ec58708b2016c933 /net
parentd5ba6188dfbf6bb68354bec86e483623f1f6dae2 (diff)
downloadu-boot-c7ae46efdcf42317e3e57d0f14e844c551691ab9.zip
u-boot-c7ae46efdcf42317e3e57d0f14e844c551691ab9.tar.gz
u-boot-c7ae46efdcf42317e3e57d0f14e844c551691ab9.tar.bz2
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>
Diffstat (limited to 'net')
-rw-r--r--net/dsa-uclass.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/dsa-uclass.c b/net/dsa-uclass.c
index 7a465b1..606b153 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;
}