summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaowen Bai <baihaowen@meizu.com>2022-03-18 11:35:25 +0800
committerJarkko Sakkinen <jarkko@kernel.org>2022-05-23 18:47:49 +0300
commit80b8a39777a9161d77608ac702c7eeafce5ddce7 (patch)
tree5ab3274197f16454e9d85c294f95b9afe2da486d
parent4d99750106adbaecee587232f2589f65170d5ce4 (diff)
tpm/tpm_ftpm_tee: Return true/false (not 1/0) from bool functions
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>
-rw-r--r--drivers/char/tpm/tpm_ftpm_tee.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/tpm/tpm_ftpm_tee.c b/drivers/char/tpm/tpm_ftpm_tee.c
index 6e3235565a4d..5c233423c56f 100644
--- a/drivers/char/tpm/tpm_ftpm_tee.c
+++ b/drivers/char/tpm/tpm_ftpm_tee.c
@@ -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 = {