Skip to content

Commit d832ce9

Browse files
committed
Remove redundant code in libuw_dwarf_decode_pointer()
1 parent cd667e6 commit d832ce9

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

kos/src/libunwind/dwarf.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,6 @@ NOTHROW_NCX(CC libuw_dwarf_decode_pointer)(NCX byte_t const **__restrict p_reade
120120
if (dw_bases) {
121121
result = (byte_t *)dw_bases->ub_tbase;
122122
if (!result) {
123-
result = (byte_t *)dw_bases->ub_fbase;
124-
if (!result)
125-
result = (byte_t *)reader;
126123
result = calculate_tbase(reader);
127124
dw_bases->ub_tbase = result;
128125
}
@@ -135,9 +132,6 @@ NOTHROW_NCX(CC libuw_dwarf_decode_pointer)(NCX byte_t const **__restrict p_reade
135132
if (dw_bases) {
136133
result = (byte_t *)dw_bases->ub_dbase;
137134
if (!result) {
138-
result = (byte_t *)dw_bases->ub_fbase;
139-
if (!result)
140-
result = (byte_t *)reader;
141135
result = calculate_dbase(reader);
142136
dw_bases->ub_dbase = result;
143137
}

0 commit comments

Comments
 (0)