]> asedeno.scripts.mit.edu Git - linux.git/commit
tpm: don't return bool from update_timeouts
authorJerry Snitselaar <jsnitsel@redhat.com>
Wed, 30 Jan 2019 22:06:58 +0000 (15:06 -0700)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Wed, 13 Feb 2019 07:47:01 +0000 (09:47 +0200)
commit36ce089758b1b55df5854d6b6d74713f609e125d
tree45bd1df16ab47554076866dab97b88bf22a1ddca
parent08a8112ad9c17ec3d78363bf7123df6598f09bc2
tpm: don't return bool from update_timeouts

Set tpm_chip->timeouts_adjusted directly in the update_timeouts
code instead of returning bool. In case of tpm read failing
print warning that the read failed and continue on.

Signed-off-by: Jerry Snitselaar <jsnitsel@redhat.com>
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
drivers/char/tpm/tpm1-cmd.c
drivers/char/tpm/tpm_tis_core.c
include/linux/tpm.h