Skip to content

Commit a78766d

Browse files
JasonYanHwdavem330
authored andcommitted
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 <[email protected]> Signed-off-by: Jason Yan <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 65dc8e1 commit a78766d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/net/ethernet/ti/cpsw.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1291,7 +1291,7 @@ static int cpsw_probe_dt(struct cpsw_platform_data *data,
12911291
data->mac_control = prop;
12921292

12931293
if (of_property_read_bool(node, "dual_emac"))
1294-
data->dual_emac = 1;
1294+
data->dual_emac = true;
12951295

12961296
/*
12971297
* Populate all the child nodes here...
@@ -1590,7 +1590,7 @@ static int cpsw_probe(struct platform_device *pdev)
15901590

15911591
soc = soc_device_match(cpsw_soc_devices);
15921592
if (soc)
1593-
cpsw->quirk_irq = 1;
1593+
cpsw->quirk_irq = true;
15941594

15951595
data = &cpsw->data;
15961596
cpsw->slaves = devm_kcalloc(dev,

0 commit comments

Comments
 (0)