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-Tag: v2022.07~227^2~27^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c7ae46efdcf42317e3e57d0f14e844c551691ab9;p=platform%2Fkernel%2Fu-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 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; }