From: Bin Meng Date: Mon, 1 Nov 2021 06:15:10 +0000 (+0800) Subject: net: dsa: Use true instead of 1 in the set_promisc() call X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=c7ae46efdcf42317e3e57d0f14e844c551691ab9;p=u-boot.git 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 Reviewed-by: Vladimir Oltean Reviewed-by: Ramon Fried --- 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; }