summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-fsl-spi.c
diff options
context:
space:
mode:
authorJia Zhang <zhang.jia@linux.alibaba.com>2019-01-11 16:59:32 +0800
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>2019-02-13 09:47:00 +0200
commitbb3b6b0fc57182b568ded61c55eff8a02fcfe27b (patch)
treef05b6ecfd53614425b7bd3efc20f63f617f40e3a /drivers/spi/spi-fsl-spi.c
parent442601e87a4769a8daba4976ec3afa5222ca211d (diff)
downloadblackbird-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-fsl-spi.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud