Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ba6a09d7 authored by Fengguang Wu's avatar Fengguang Wu Committed by Peter Huewe
Browse files

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: default avatarJason Gunthorpe <jgunthorpe@obsidianresearch.com>
Signed-off-by: default avatarFengguang Wu <fengguang.wu@intel.com>
Signed-off-by: default avatarPeter Huewe <peterhuewe@gmx.de>
parent 37bd99d7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 = {