projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d5ba618
)
net: dsa: Use true instead of 1 in the set_promisc() call
author
Bin Meng
<bmeng.cn@gmail.com>
Mon, 1 Nov 2021 06:15:10 +0000
(14:15 +0800)
committer
Ramon 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
patch
|
blob
|
history
diff --git
a/net/dsa-uclass.c
b/net/dsa-uclass.c
index
7a465b1
..
606b153
100644
(file)
--- 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;
}