]> git.baikalelectronics.ru Git - uboot.git/commitdiff
net: dsa: Use true instead of 1 in the set_promisc() call
authorBin Meng <bmeng.cn@gmail.com>
Mon, 1 Nov 2021 06:15:10 +0000 (14:15 +0800)
committerRamon Fried <rfried.dev@gmail.com>
Tue, 23 Nov 2021 07:57:56 +0000 (09:57 +0200)
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>
net/dsa-uclass.c

index 7a465b10993f529a86dfc9b43739bec2b00ce094..606b1539a776979c6c90fd118ad534fdf29ffeef 100644 (file)
@@ -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;
        }