diff options
author | 2019-01-11 16:59:32 +0800 | |
---|---|---|
committer | 2019-02-13 09:47:00 +0200 | |
commit | bb3b6b0fc57182b568ded61c55eff8a02fcfe27b (patch) | |
tree | f05b6ecfd53614425b7bd3efc20f63f617f40e3a /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | tpm/tpm_i2c_atmel: Return -E2BIG when the transfer is incomplete (diff) | |
download | linux-dev-bb3b6b0fc57182b568ded61c55eff8a02fcfe27b.tar.xz linux-dev-bb3b6b0fc57182b568ded61c55eff8a02fcfe27b.zip |
tpm: Simplify the measurements loop
The responsibility of tpm1_bios_measurements_start() is to walk over the
first *pos measurements, ensuring the skipped and to-be-read
measurements are not out-of-boundary.
This commit simplifies the loop by employing a do-while loop with
the necessary sanity check.
Signed-off-by: Jia Zhang <zhang.jia@linux.alibaba.com>
Reviewd-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions