diff options
author | Jon Hunter <jonathanh@nvidia.com> | 2016-09-06 12:50:45 +0300 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2016-09-08 23:36:18 +0300 |
commit | fbf8090b723d4df3cfe18c9491a8bc21ec15a5c0 (patch) | |
tree | f14d4f0ef6bdf904f2275e700830b0bb278b0385 /drivers/i2c | |
parent | 77821b4678f93b0b45870c04b7c06c364ed090de (diff) | |
download | linux-fbf8090b723d4df3cfe18c9491a8bc21ec15a5c0.tar.xz |
i2c: tegra: Fix assignment of boolean variables
Fix the following warnings reported by coccinelle for the Tegra I2C
driver.
drivers/i2c/busses/i2c-tegra.c:513:2-23: WARNING: Assignment of bool to 0/1
drivers/i2c/busses/i2c-tegra.c:539:3-24: WARNING: Assignment of bool to 0/1
Reported-by: Wolfram Sang <wsa@the-dreams.de>
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/i2c')
-rw-r--r-- | drivers/i2c/busses/i2c-tegra.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/i2c/busses/i2c-tegra.c b/drivers/i2c/busses/i2c-tegra.c index c15d5755bccc..4af9bbae20df 100644 --- a/drivers/i2c/busses/i2c-tegra.c +++ b/drivers/i2c/busses/i2c-tegra.c @@ -534,7 +534,7 @@ static int tegra_i2c_init(struct tegra_i2c_dev *i2c_dev) goto err; if (i2c_dev->irq_disabled) { - i2c_dev->irq_disabled = 0; + i2c_dev->irq_disabled = false; enable_irq(i2c_dev->irq); } @@ -573,7 +573,7 @@ static irqreturn_t tegra_i2c_isr(int irq, void *dev_id) if (!i2c_dev->irq_disabled) { disable_irq_nosync(i2c_dev->irq); - i2c_dev->irq_disabled = 1; + i2c_dev->irq_disabled = true; } goto err; } |