From: Fengguang Wu Date: Sat, 2 Nov 2013 16:41:51 +0000 (+0100) Subject: tpm/tpm_i2c_atmel: fix coccinelle warnings X-Git-Tag: v3.14-rc1~147^2~12 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=ba6a09d7c01fd88c26a0a4d83788026632ee3d37;p=linux.git 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 CC: Peter Huewe Acked-by: Jason Gunthorpe Signed-off-by: Fengguang Wu Signed-off-by: Peter Huewe --- 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 = { static bool i2c_atmel_req_canceled(struct tpm_chip *chip, u8 status) { - return 0; + return false; } static const struct tpm_vendor_specific i2c_atmel = {