All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next] net: ethernet: ti: use true,false for bool variables in cpsw_new.c
@ 2020-05-05  7:46 Jason Yan
  2020-05-05 18:41 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Jason Yan @ 2020-05-05  7:46 UTC (permalink / raw)
  To: grygorii.strashko, davem, ast, daniel, kuba, hawk,
	john.fastabend, kafai, songliubraving, yhs, andriin, kpsingh,
	linux-omap, netdev, linux-kernel, bpf
  Cc: Jason Yan

Fix the following coccicheck warning:

drivers/net/ethernet/ti/cpsw_new.c:1924:2-17: WARNING: Assignment of
0/1 to bool variable
drivers/net/ethernet/ti/cpsw_new.c:1231:1-16: WARNING: Assignment of
0/1 to bool variable

Signed-off-by: Jason Yan <yanaijie@huawei.com>
---
 drivers/net/ethernet/ti/cpsw_new.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/ethernet/ti/cpsw_new.c b/drivers/net/ethernet/ti/cpsw_new.c
index 33c8dd686206..dce49311d3d3 100644
--- a/drivers/net/ethernet/ti/cpsw_new.c
+++ b/drivers/net/ethernet/ti/cpsw_new.c
@@ -1228,7 +1228,7 @@ static int cpsw_probe_dt(struct cpsw_common *cpsw)
 	data->active_slave = 0;
 	data->channels = CPSW_MAX_QUEUES;
 	data->ale_entries = CPSW_ALE_NUM_ENTRIES;
-	data->dual_emac = 1;
+	data->dual_emac = true;
 	data->bd_ram_size = CPSW_BD_RAM_SIZE;
 	data->mac_control = 0;
 
@@ -1921,7 +1921,7 @@ static int cpsw_probe(struct platform_device *pdev)
 
 	soc = soc_device_match(cpsw_soc_devices);
 	if (soc)
-		cpsw->quirk_irq = 1;
+		cpsw->quirk_irq = true;
 
 	cpsw->rx_packet_max = rx_packet_max;
 	cpsw->descs_pool_size = descs_pool_size;
-- 
2.21.1


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

* Re: [PATCH net-next] net: ethernet: ti: use true,false for bool variables in cpsw_new.c
  2020-05-05  7:46 [PATCH net-next] net: ethernet: ti: use true,false for bool variables in cpsw_new.c Jason Yan
@ 2020-05-05 18:41 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2020-05-05 18:41 UTC (permalink / raw)
  To: yanaijie
  Cc: grygorii.strashko, ast, daniel, kuba, hawk, john.fastabend,
	kafai, songliubraving, yhs, andriin, kpsingh, linux-omap, netdev,
	linux-kernel, bpf

From: Jason Yan <yanaijie@huawei.com>
Date: Tue, 5 May 2020 15:46:23 +0800

> Fix the following coccicheck warning:
> 
> drivers/net/ethernet/ti/cpsw_new.c:1924:2-17: WARNING: Assignment of
> 0/1 to bool variable
> drivers/net/ethernet/ti/cpsw_new.c:1231:1-16: WARNING: Assignment of
> 0/1 to bool variable
> 
> Signed-off-by: Jason Yan <yanaijie@huawei.com>

Applied.

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

end of thread, other threads:[~2020-05-05 18:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-05  7:46 [PATCH net-next] net: ethernet: ti: use true,false for bool variables in cpsw_new.c Jason Yan
2020-05-05 18:41 ` David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.