Skip to content
Commit bb3b6b0f authored by Jia Zhang's avatar Jia Zhang Committed by Jarkko Sakkinen
Browse files

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: default avatarJia Zhang <zhang.jia@linux.alibaba.com>
Reviewd-by: default avatarJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: default avatarJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
parent 442601e8
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment