diff options
author | Nico Huber <nico.huber@secunet.com> | 2017-03-29 16:44:33 +0200 |
---|---|---|
committer | Nico Huber <nico.h@gmx.de> | 2017-07-28 12:24:06 +0000 |
commit | 0bb3f7142aecdf883cc28bd9b771bdba3da5d7d9 (patch) | |
tree | 1bd56eecff210a628c148c836e2dfce13ebfd5f8 /util | |
parent | d54e4f467753a247552bfb629f007f8931b0caa7 (diff) | |
download | flashrom-0bb3f7142aecdf883cc28bd9b771bdba3da5d7d9.tar.gz flashrom-0bb3f7142aecdf883cc28bd9b771bdba3da5d7d9.tar.bz2 flashrom-0bb3f7142aecdf883cc28bd9b771bdba3da5d7d9.zip |
ich_descriptors: Draw +0xfff into ICH_FREG_LIMIT()
The condition `base > limit` is still valid since `base` is always at
least 4096 greater than `limit` in this case.
Change-Id: I11ac0a50b3f32f47879e7cfb7a26068cd0572ede
Signed-off-by: Nico Huber <nico.huber@secunet.com>
Reviewed-on: https://review.coreboot.org/19046
Reviewed-by: David Hendricks <david.hendricks@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'util')
-rw-r--r-- | util/ich_descriptors_tool/ich_descriptors_tool.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/util/ich_descriptors_tool/ich_descriptors_tool.c b/util/ich_descriptors_tool/ich_descriptors_tool.c index 250abf00..7dfa5c07 100644 --- a/util/ich_descriptors_tool/ich_descriptors_tool.c +++ b/util/ich_descriptors_tool/ich_descriptors_tool.c @@ -58,7 +58,6 @@ static void dump_file(const char *prefix, const uint32_t *dump, unsigned int len return; } - limit = limit | 0x0fff; file_len = limit + 1 - base; if (base + file_len > len) { printf("The %s region is spanning 0x%08x-0x%08x, but it is " |