diff options
author | Aaron Durbin <adurbin@chromium.org> | 2016-08-03 23:01:50 -0500 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2016-08-08 18:41:21 +0200 |
commit | fb8fb0e14228cddd305b8c4d21bca7d371612aeb (patch) | |
tree | 1e9dc21a497375968b867a8d3d976bbf02e69c67 /src/mainboard/google/cyan/Kconfig.name | |
parent | 36fdec88e60a2887c2e46a273de5246174193259 (diff) |
drivers/elog: remove unnecessary check in elog_shrink()
There was a check against the next event offset against
the shrink size in elog_shrink(). However, all calls
to elog_shrink() were conditionalized on the next
event offset exceeding the full threshold. The shrink
size is set to the minimum of the full threshold and
a percentage of the elog region size. Therefore, it's
impossible for the next event offset to be less than
the shrink size because full threshold is always greater
than or equal to the shrink size.
BUG=chrome-os-partner:55932
Change-Id: Ie6ff106f1c53c15aa36a82223a235a7ac97fd8c7
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: https://review.coreboot.org/16093
Tested-by: build bot (Jenkins)
Reviewed-by: Furquan Shaikh <furquan@google.com>
Diffstat (limited to 'src/mainboard/google/cyan/Kconfig.name')
0 files changed, 0 insertions, 0 deletions