Felix Singer has submitted this change. ( https://review.coreboot.org/c/flashrom/+/70247 )
(
3 is the latest approved patch-set. No files were changed between the latest approved patch-set and the submitted one. )Change subject: cbtables.c/search_lb_records: Drop unused variable `count` ......................................................................
cbtables.c/search_lb_records: Drop unused variable `count`
Clang 15 complains about it. Remove it.
Signed-off-by: Felix Singer felixsinger@posteo.net Change-Id: I340208f513bed57a9cc2bba880a2400352c5cc42 Reviewed-on: https://review.coreboot.org/c/flashrom/+/70247 Reviewed-by: Anastasia Klimchuk aklm@chromium.org Reviewed-by: Angel Pons th3fanbus@gmail.com Tested-by: build bot (Jenkins) no-reply@coreboot.org --- M cbtable.c 1 file changed, 16 insertions(+), 3 deletions(-)
Approvals: build bot (Jenkins): Verified Angel Pons: Looks good to me, approved Anastasia Klimchuk: Looks good to me, approved
diff --git a/cbtable.c b/cbtable.c index 2b339d5..38f9cbe 100644 --- a/cbtable.c +++ b/cbtable.c @@ -295,13 +295,10 @@ 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;