elf/cache.c: Remove unnecessary condition

This commit is contained in:
Marek Polacek 2011-07-19 20:17:51 -04:00 committed by Ulrich Drepper
parent b902330ca8
commit 8991e135f7
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,8 @@
2011-07-15 Marek Polacek <mpolacek@redhat.com>
* elf/cache.c (load_aux_cache): Remove unnecessary condition of
"aux_cache->nlibs < 0".
* nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
in the reload-count case.

View File

@ -675,7 +675,6 @@ load_aux_cache (const char *aux_cache_name)
if (aux_cache == MAP_FAILED
|| aux_cache_size < sizeof (struct aux_cache_file)
|| memcmp (aux_cache->magic, AUX_CACHEMAGIC, sizeof AUX_CACHEMAGIC - 1)
|| aux_cache->nlibs < 0
|| aux_cache->nlibs >= aux_cache_size)
{
close (fd);