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...@gmail.com>
Reviewed-by: Vladimir Oltean <vladimir.olt...@nxp.com>
Reviewed-by: Ramon Fried <rfried....@gmail.com>

---

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

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

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

Reply via email to