Skip to content

Commit

Permalink
tpm/tpm_ftpm_tee: Return true/false (not 1/0) from bool functions
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Haowen Bai authored and Jarkko Sakkinen committed May 23, 2022
1 parent 4d99750 commit 80b8a39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/char/tpm/tpm_ftpm_tee.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 80b8a39

Please sign in to comment.