]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
tpm/tpm_i2c_atmel: fix coccinelle warnings
authorFengguang Wu <fengguang.wu@intel.com>
Sat, 2 Nov 2013 16:41:51 +0000 (17:41 +0100)
committerPeter Huewe <peterhuewe@gmx.de>
Mon, 6 Jan 2014 13:37:24 +0000 (14:37 +0100)
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>
drivers/char/tpm/tpm_i2c_atmel.c

index c3cd7fe481a1c421eb353a12fbf19b5b443e989f..af6805b06f57609855d84341256f6a2f34d98063 100644 (file)
@@ -175,7 +175,7 @@ static struct attribute_group i2c_atmel_attr_grp = {
 
 static bool i2c_atmel_req_canceled(struct tpm_chip *chip, u8 status)
 {
-       return 0;
+       return false;
 }
 
 static const struct tpm_vendor_specific i2c_atmel = {