Skip to contentSkip to conversation

cleanup code

PATCH Applied Maninder Singh 2 participants 2 messages May 6, 2015 – Sep 11, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cleanup code

EP-F6AA0618C49C4AEDA73BFF1B39950BAB
Hi,

Remove dso NULL check because before calling this API
already checking for dso NULL and also dso pointer is used before this check.

---
 trunk/src/gather.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
trunk/src/gather.c +0 -1
index c3d3128..8f310f6 100644
@@ -561,7 +561,6 @@ make_unprelinkable:
 
       assert (ent->type == ET_NONE);
       ent->type = ET_UNPRELINKABLE;
-      if (dso)
    close_dso (dso);
       return 0;
     }

--
1.7.1

Thanks
Maninder Singh

Applied
#1 lore raw

Merged to the staging branch.

Quoted 30 lines · Maninder Singh

EP-F6AA0618C49C4AEDA73BFF1B39950BAB
Hi,

Remove dso NULL check because before calling this API
already checking for dso NULL and also dso pointer is used before this check.

---
 trunk/src/gather.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
trunk/src/gather.c +0 -2
index c3d3128..8f310f6 100644
@@ -561,7 +561,6 @@ make_unprelinkable:
 
       assert (ent->type == ET_NONE);
       ent->type = ET_UNPRELINKABLE;
-      if (dso)
    close_dso (dso);
       return 0;
     }
--

1.7.1

Thanks
Maninder Singh