diff options
author | Jason Yan <yanaijie@huawei.com> | 2020-09-19 15:46:17 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-09-19 14:23:14 -0700 |
commit | a78766d9375bcf1460450047c7565f1c9cd42614 (patch) | |
tree | 8edea06c48f32030932eb46a65fb4c855a7084f2 /drivers/net/ethernet/ti | |
parent | 65dc8e12f158e24eee79a754751f56e603eaa5f2 (diff) | |
download | linux-a78766d9375bcf1460450047c7565f1c9cd42614.tar.gz linux-a78766d9375bcf1460450047c7565f1c9cd42614.tar.bz2 linux-a78766d9375bcf1460450047c7565f1c9cd42614.zip |
net: ethernet: ti: cpsw: use true,false for bool variables
This addresses the following coccinelle warning:
drivers/net/ethernet/ti/cpsw.c:1599:2-17: WARNING: Assignment of 0/1 to
bool variable
drivers/net/ethernet/ti/cpsw.c:1300:2-17: WARNING: Assignment of 0/1 to
bool variable
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Jason Yan <yanaijie@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/ti')
-rw-r--r-- | drivers/net/ethernet/ti/cpsw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/ti/cpsw.c b/drivers/net/ethernet/ti/cpsw.c index 9b425f184f3c..9fd1f77190ad 100644 --- a/drivers/net/ethernet/ti/cpsw.c +++ b/drivers/net/ethernet/ti/cpsw.c @@ -1291,7 +1291,7 @@ static int cpsw_probe_dt(struct cpsw_platform_data *data, data->mac_control = prop; if (of_property_read_bool(node, "dual_emac")) - data->dual_emac = 1; + data->dual_emac = true; /* * Populate all the child nodes here... @@ -1590,7 +1590,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; data = &cpsw->data; cpsw->slaves = devm_kcalloc(dev, |