Skip to content
Snippets Groups Projects
Commit c7ae46ef authored by Bin Meng's avatar Bin Meng Committed by Ramon Fried
Browse files

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: default avatarBin Meng <bmeng.cn@gmail.com>
Reviewed-by: default avatarVladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: default avatarRamon Fried <rfried.dev@gmail.com>
parent d5ba6188
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment