diff options
author | Felix Singer <felixsinger@posteo.net> | 2022-12-02 03:08:27 +0100 |
---|---|---|
committer | Anastasia Klimchuk <aklm@chromium.org> | 2022-12-13 20:49:07 +0000 |
commit | 405402fe85595637b41c5dca2bdbe86967f75e9c (patch) | |
tree | 2d496b99bd715b0a00103b5717e2fc7718f5678b | |
parent | fc9baab9f7b6d87e2acbd462b6ab5f91d6353fa6 (diff) | |
download | flashrom-405402fe85595637b41c5dca2bdbe86967f75e9c.tar.gz flashrom-405402fe85595637b41c5dca2bdbe86967f75e9c.tar.bz2 flashrom-405402fe85595637b41c5dca2bdbe86967f75e9c.zip |
cbtables.c/search_lb_records: Drop unused variable `count`
Clang 15 complains about it. Remove it.
Original-Signed-off-by: Felix Singer <felixsinger@posteo.net>
Original-Reviewed-on: https://review.coreboot.org/c/flashrom/+/70247
Original-Reviewed-by: Anastasia Klimchuk <aklm@chromium.org>
Original-Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Original-Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
(cherry picked from commit 8390d73806559ceb10894b7302b0dfcb3d71bd0d)
Change-Id: I340208f513bed57a9cc2bba880a2400352c5cc42
Signed-off-by: Evan Benn <evanbenn@google.com>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/70324
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Anastasia Klimchuk <aklm@chromium.org>
Reviewed-by: David Hendricks <david.hendricks@gmail.com>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
-rw-r--r-- | cbtable.c | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -295,13 +295,10 @@ static struct lb_record *next_record(struct lb_record *rec) static void search_lb_records(struct lb_record *rec, struct lb_record *last, unsigned long addr) { struct lb_record *next; - int count; - count = 0; for (next = next_record(rec); (rec < last) && (next <= last); rec = next, addr += rec->size) { next = next_record(rec); - count++; if (rec->tag == LB_TAG_MAINBOARD) { find_mainboard(rec, addr); break; |