summaryrefslogtreecommitdiff
path: root/src/mainboard/lenovo/t420
diff options
context:
space:
mode:
authorLee Leahy <leroy.p.leahy@intel.com>2017-05-09 16:37:58 -0700
committerLee Leahy <leroy.p.leahy@intel.com>2017-05-10 22:31:36 +0200
commitbf5d5093fcc37298b8359237195dc92c978a5536 (patch)
tree5981b49dcd85cbe6bd51f05addaca6ba461d53e5 /src/mainboard/lenovo/t420
parent72f730e23c6682e2db16cf64a5be432f2a58a88b (diff)
drivers/storage: Fix array references
Fix bug detected by coverity to handle the zero capacity case. Specific changes: * Reduce loop count by one to handle zero capacity case * Use structure instead of dual arrays * Move structures into display_capacity routine Coverity Issues: * 1374931 * 1374932 * 1374933 * 1374934 TEST=Build and run on Galileo Gen2 Change-Id: Ie5c96e78417b667438a00ee22c70894a00d13291 Signed-off-by: Lee Leahy <Leroy.P.Leahy@intel.com> Reviewed-on: https://review.coreboot.org/19643 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/mainboard/lenovo/t420')
0 files changed, 0 insertions, 0 deletions