diff mbox series

[v2,1/3] net: dsa: Use true instead of 1 in the set_promisc() call

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

Commit Message

Bin Meng Nov. 1, 2021, 6:15 a.m. UTC
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>

---

Changes in v2:
- rebase on u-boot-net/next

 net/dsa-uclass.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

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;
 	}