diff options
author | Jia Zhang <zhang.jia@linux.alibaba.com> | 2019-01-11 16:59:32 +0800 |
---|---|---|
committer | Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> | 2019-02-13 09:47:00 +0200 |
commit | bb3b6b0fc57182b568ded61c55eff8a02fcfe27b (patch) | |
tree | f05b6ecfd53614425b7bd3efc20f63f617f40e3a /drivers/spi/spi-at91-usart.c | |
parent | 442601e87a4769a8daba4976ec3afa5222ca211d (diff) | |
download | blackbird-op-linux-bb3b6b0fc57182b568ded61c55eff8a02fcfe27b.tar.gz blackbird-op-linux-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 'drivers/spi/spi-at91-usart.c')
0 files changed, 0 insertions, 0 deletions