projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
08736e8
)
i2c: powermac: use true,false for bool variable
author
Jason Yan
<yanaijie@huawei.com>
Sun, 26 Apr 2020 09:42:28 +0000
(17:42 +0800)
committer
Wolfram Sang
<wsa@the-dreams.de>
Thu, 30 Apr 2020 14:18:30 +0000
(16:18 +0200)
In i2c_powermac_register_devices(), variable 'found_onyx' is bool and
assigned '0' and 'true' in different places. Use 'false' instead of '0'.
Signed-off-by: Jason Yan <yanaijie@huawei.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-powermac.c
patch
|
blob
|
history
diff --git
a/drivers/i2c/busses/i2c-powermac.c
b/drivers/i2c/busses/i2c-powermac.c
index 81506c2dab657b1c9dd283edc7ad764f72bba4f6..3e38e114948b229d69812078a05ce286bbd75f24 100644
(file)
--- a/
drivers/i2c/busses/i2c-powermac.c
+++ b/
drivers/i2c/busses/i2c-powermac.c
@@
-315,7
+315,7
@@
static void i2c_powermac_register_devices(struct i2c_adapter *adap,
{
struct i2c_client *newdev;
struct device_node *node;
- bool found_onyx =
0
;
+ bool found_onyx =
false
;
/*
* In some cases we end up with the via-pmu node itself, in this