
29 Sep
2021
29 Sep
'21
3:32 p.m.
On Wed, Sep 29, 2021 at 01:50:44PM +0800, Bin Meng wrote:
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
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 694664d81b..dcefec03f4 100644 --- a/net/dsa-uclass.c +++ b/net/dsa-uclass.c @@ -282,7 +282,7 @@ static int dsa_port_probe(struct udevice *pdev) 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 0; }
-- 2.25.1
Reviewed-by: Vladimir Oltean vladimir.oltean@nxp.com