Skip to content

Commit

Permalink
net: ethernet: ti: use true, false for bool variables in cpsw_new.c
Browse files Browse the repository at this point in the history
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>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Jason Yan authored and David S. Miller committed May 5, 2020
1 parent ba42580 commit d192ae5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/ethernet/ti/cpsw_new.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit d192ae5

Please sign in to comment.