@@ -155,8 +155,8 @@ static bool is_ignored_symbol(const char *name, char type)
155
155
return false;
156
156
}
157
157
158
- static int check_symbol_range (const char * sym , unsigned long long addr ,
159
- struct addr_range * ranges , int entries )
158
+ static void check_symbol_range (const char * sym , unsigned long long addr ,
159
+ struct addr_range * ranges , int entries )
160
160
{
161
161
size_t i ;
162
162
struct addr_range * ar ;
@@ -166,14 +166,12 @@ static int check_symbol_range(const char *sym, unsigned long long addr,
166
166
167
167
if (strcmp (sym , ar -> start_sym ) == 0 ) {
168
168
ar -> start = addr ;
169
- return 0 ;
169
+ return ;
170
170
} else if (strcmp (sym , ar -> end_sym ) == 0 ) {
171
171
ar -> end = addr ;
172
- return 0 ;
172
+ return ;
173
173
}
174
174
}
175
-
176
- return 1 ;
177
175
}
178
176
179
177
static int read_symbol (FILE * in , struct sym_entry * s )
@@ -200,9 +198,8 @@ static int read_symbol(FILE *in, struct sym_entry *s)
200
198
/* Ignore most absolute/undefined (?) symbols. */
201
199
if (strcmp (sym , "_text" ) == 0 )
202
200
_text = s -> addr ;
203
- else if (check_symbol_range (sym , s -> addr , text_ranges ,
204
- ARRAY_SIZE (text_ranges )) == 0 )
205
- /* nothing to do */ ;
201
+
202
+ check_symbol_range (sym , s -> addr , text_ranges , ARRAY_SIZE (text_ranges ));
206
203
207
204
/* include the type field in the symbol name, so that it gets
208
205
* compressed together */
0 commit comments