]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Remove redundancy.
authorNicholas Nethercote <njn@valgrind.org>
Tue, 21 Jun 2005 03:36:01 +0000 (03:36 +0000)
committerNicholas Nethercote <njn@valgrind.org>
Tue, 21 Jun 2005 03:36:01 +0000 (03:36 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3981

coregrind/m_redir.c

index 4c6d8ff079def31608ef17233137de742607c6e8..4615b7283c5e044b9641e09e9eaf736993cc3bb1 100644 (file)
@@ -216,19 +216,15 @@ static Bool resolve_redir(CodeRedirect *redir, const SegInfo *si)
    if (si->seg->flags & SF_VALGRIND)
       return False;
 
-   resolved = VG_(is_resolved)(redir);
-
+   resolved = from_resolved(redir);
    vg_assert(!resolved);
+   vg_assert(redir->from_sym != NULL);
 
-   if (!from_resolved(redir)) {
-      vg_assert(redir->from_sym != NULL);
-
-      if (match_lib(redir->from_lib, si)) {
-        redir->from_addr = VG_(reverse_search_one_symtab)(si, redir->from_sym);
-        if (VG_(clo_trace_redir) && redir->from_addr != 0)
-           VG_(printf)("   bind FROM: %p = %s:%s\n", 
-                        redir->from_addr,redir->from_lib, redir->from_sym );
-      }
+   if (match_lib(redir->from_lib, si)) {
+      redir->from_addr = VG_(reverse_search_one_symtab)(si, redir->from_sym);
+      if (VG_(clo_trace_redir) && redir->from_addr != 0)
+         VG_(printf)("   bind FROM: %p = %s:%s\n", 
+                     redir->from_addr,redir->from_lib, redir->from_sym );
    }
 
    resolved = from_resolved(redir);