u-boot.lists.denx.de archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] net: dsa: Use true instead of 1 in the set_promisc() call
@ 2021-09-29  5:50 Bin Meng
  2021-09-29  5:50 ` [PATCH 2/3] net: fec_mxc: Declare 'promisc' as bool Bin Meng
                   ` (2 more replies)
  0 siblings, 3 replies; 18+ messages in thread
From: Bin Meng @ 2021-09-29  5:50 UTC (permalink / raw)
  To: Ramon Fried, u-boot; +Cc: Vladimir Oltean

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


^ permalink raw reply related	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2021-11-03  7:13 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-29  5:50 [PATCH 1/3] net: dsa: Use true instead of 1 in the set_promisc() call Bin Meng
2021-09-29  5:50 ` [PATCH 2/3] net: fec_mxc: Declare 'promisc' as bool Bin Meng
2021-09-29 13:32   ` Vladimir Oltean
2021-10-16 18:26     ` Ramon Fried
2021-09-29  5:50 ` [PATCH 3/3] net: tsec: Make redundant_init() static Bin Meng
2021-09-29 13:44   ` Vladimir Oltean
2021-10-16 18:27   ` Ramon Fried
2021-09-29 13:32 ` [PATCH 1/3] net: dsa: Use true instead of 1 in the set_promisc() call Vladimir Oltean
2021-10-16 18:26   ` Ramon Fried
2021-10-27  2:18     ` Bin Meng
2021-10-28  4:53       ` Ramon Fried
2021-10-28 18:41         ` Ramon Fried
2021-10-28 19:29           ` Vladimir Oltean
2021-10-30 13:31             ` Ramon Fried
2021-10-30 13:37               ` Bin Meng
2021-10-30 14:39                 ` Ramon Fried
2021-10-31 22:04               ` Vladimir Oltean
2021-11-03  7:13                 ` Ramon Fried

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).