Message ID | 20211101061512.3277805-1-bmeng.cn@gmail.com |
---|---|
State | Accepted |
Commit | c7ae46efdcf42317e3e57d0f14e844c551691ab9 |
Delegated to: | Ramon Fried |
Headers | show |
Series | [v2,1/3] net: dsa: Use true instead of 1 in the set_promisc() call | expand |
diff --git a/net/dsa-uclass.c b/net/dsa-uclass.c index 7a465b1099..606b1539a7 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; }