]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
elf/cache.c: Remove unnecessary condition
authorMarek Polacek <mpolacek@redhat.com>
Wed, 20 Jul 2011 00:17:51 +0000 (20:17 -0400)
committerUlrich Drepper <drepper@gmail.com>
Wed, 20 Jul 2011 00:17:51 +0000 (20:17 -0400)
ChangeLog
elf/cache.c

index e24f33e940f55e2515eb971af369d5a972f1bd32..04c72c157a64712e96b5ea6868840a8583d26a49 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
 
index 09885930d7a40f6afc37075bb0238887a711a900..393b4e59394e67be1ed4886d9765ad66a6aacc38 100644 (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);