]> git.baikalelectronics.ru Git - kernel.git/commitdiff
tpm/tpm_ftpm_tee: Return true/false (not 1/0) from bool functions
authorHaowen Bai <baihaowen@meizu.com>
Fri, 18 Mar 2022 03:35:25 +0000 (11:35 +0800)
committerJarkko Sakkinen <jarkko@kernel.org>
Mon, 23 May 2022 15:47:49 +0000 (18:47 +0300)
Return boolean values ("true" or "false") instead of 1 or 0 from bool
functions.

Signed-off-by: Haowen Bai <baihaowen@meizu.com>
Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
drivers/char/tpm/tpm_ftpm_tee.c

index 6e3235565a4d8ee86cd79aea7d034d03a2d6938a..5c233423c56fa99a1e4572a75f298abcb72541d6 100644 (file)
@@ -177,7 +177,7 @@ static u8 ftpm_tee_tpm_op_status(struct tpm_chip *chip)
 
 static bool ftpm_tee_tpm_req_canceled(struct tpm_chip *chip, u8 status)
 {
-       return 0;
+       return false;
 }
 
 static const struct tpm_class_ops ftpm_tee_tpm_ops = {