diff options
author | Fengguang Wu <fengguang.wu@intel.com> | 2013-11-02 12:41:51 -0400 |
---|---|---|
committer | Peter Huewe <peterhuewe@gmx.de> | 2014-01-06 08:37:24 -0500 |
commit | ba6a09d7c01fd88c26a0a4d83788026632ee3d37 (patch) | |
tree | 5f67630db7233c68c911b058c67fc4158bfc6dc8 | |
parent | 37bd99d7cba195692be2874cdb8048c9044806c7 (diff) |
tpm/tpm_i2c_atmel: fix coccinelle warnings
drivers/char/tpm/tpm_i2c_atmel.c:178:8-9: WARNING: return of 0/1 in function 'i2c_atmel_req_canceled' with return type bool
Return statements in functions returning bool should use
true/false instead of 1/0.
Generated by: coccinelle/misc/boolreturn.cocci
CC: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
CC: Peter Huewe <peterhuewe@gmx.de>
Acked-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
-rw-r--r-- | drivers/char/tpm/tpm_i2c_atmel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/tpm/tpm_i2c_atmel.c b/drivers/char/tpm/tpm_i2c_atmel.c index c3cd7fe481a1..af6805b06f57 100644 --- a/drivers/char/tpm/tpm_i2c_atmel.c +++ b/drivers/char/tpm/tpm_i2c_atmel.c | |||
@@ -175,7 +175,7 @@ static struct attribute_group i2c_atmel_attr_grp = { | |||
175 | 175 | ||
176 | static bool i2c_atmel_req_canceled(struct tpm_chip *chip, u8 status) | 176 | static bool i2c_atmel_req_canceled(struct tpm_chip *chip, u8 status) |
177 | { | 177 | { |
178 | return 0; | 178 | return false; |
179 | } | 179 | } |
180 | 180 | ||
181 | static const struct tpm_vendor_specific i2c_atmel = { | 181 | static const struct tpm_vendor_specific i2c_atmel = { |