diff options
author | Jason Yan <yanaijie@huawei.com> | 2020-04-26 12:42:28 +0300 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2020-04-30 17:18:30 +0300 |
commit | de51696cf5ec9dc834b35b343c45e90091755d06 (patch) | |
tree | d5f48e110c2a48aceb4ab37b5de77713413a47cc /drivers/i2c/busses/i2c-powermac.c | |
parent | 08736e83079929bdbff8ba91c6bdb3d3e57e0abd (diff) | |
download | linux-de51696cf5ec9dc834b35b343c45e90091755d06.tar.xz |
i2c: powermac: use true,false for bool variable
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>
Diffstat (limited to 'drivers/i2c/busses/i2c-powermac.c')
-rw-r--r-- | drivers/i2c/busses/i2c-powermac.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-powermac.c b/drivers/i2c/busses/i2c-powermac.c index 81506c2dab65..3e38e114948b 100644 --- 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 |