From: Eric Biggers Date: Mon, 28 Apr 2014 23:50:57 +0000 (-0500) Subject: read_wim_lookup_table(): Remove duplicate_stream variable X-Git-Tag: v1.7.0~245 X-Git-Url: https://wimlib.net/git/?p=wimlib;a=commitdiff_plain;h=3394534dd649ddb295ef33b8e66aa91570c485a4;ds=sidebyside read_wim_lookup_table(): Remove duplicate_stream variable --- diff --git a/src/lookup_table.c b/src/lookup_table.c index 01f73835..8c394f70 100644 --- a/src/lookup_table.c +++ b/src/lookup_table.c @@ -727,7 +727,6 @@ read_wim_lookup_table(WIMStruct *wim) &((const struct wim_lookup_table_entry_disk*)buf)[i]; struct wim_reshdr reshdr; u16 part_number; - struct wim_lookup_table_entry *duplicate_entry; /* Get the resource header */ get_wim_reshdr(&disk_entry->reshdr, &reshdr); @@ -947,8 +946,7 @@ read_wim_lookup_table(WIMStruct *wim) /* Lookup table entry for a non-metadata stream. */ /* Ignore this stream if it's a duplicate. */ - duplicate_entry = lookup_stream(table, cur_entry->hash); - if (duplicate_entry) { + if (lookup_stream(table, cur_entry->hash)) { num_duplicate_entries++; goto free_cur_entry_and_continue; }