aboutsummaryrefslogtreecommitdiff
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-03 09:01:56 +0200
commit46a8c40781a7331934caf0e9e2cbd1ec0e26a370 (patch)
tree5795191370800189619629fb1eb613de5c053850
parent63ad3fc203c48d9e26fa78abe981c1ef53c6e139 (diff)
downloadu-boot-46a8c40781a7331934caf0e9e2cbd1ec0e26a370.zip
u-boot-46a8c40781a7331934caf0e9e2cbd1ec0e26a370.tar.gz
u-boot-46a8c40781a7331934caf0e9e2cbd1ec0e26a370.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>
-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;
}