mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 21:54:01 +00:00
lib/hashtable: remove superfluous check
We assign first_deleted = 0. There is no need to check its value without any further assignment in between. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
6a0498a5fd
commit
34ca77c1e1
1 changed files with 1 additions and 2 deletions
|
@ -324,8 +324,7 @@ int hsearch_r(struct env_entry item, enum env_action action,
|
|||
*/
|
||||
unsigned hval2;
|
||||
|
||||
if (htab->table[idx].used == USED_DELETED
|
||||
&& !first_deleted)
|
||||
if (htab->table[idx].used == USED_DELETED)
|
||||
first_deleted = idx;
|
||||
|
||||
ret = _compare_and_overwrite_entry(item, action, retval, htab,
|
||||
|
|
Loading…
Reference in a new issue