File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -177,7 +177,7 @@ pub fn diff_data_section(
177177 }
178178 } ;
179179 if kind == ObjDataDiffKind :: None {
180- let mut found_any_reloc_diffs = false ;
180+ let mut found_any_relocs = false ;
181181 let mut left_curr_addr = left_range. start ;
182182 let mut right_curr_addr = right_range. start ;
183183 for ( diff_kind, left_reloc, right_reloc) in diff_data_relocs_for_range (
@@ -188,10 +188,7 @@ pub fn diff_data_section(
188188 left_range. clone ( ) ,
189189 right_range. clone ( ) ,
190190 ) {
191- if diff_kind == ObjDataDiffKind :: None {
192- continue ;
193- }
194- found_any_reloc_diffs = true ;
191+ found_any_relocs = true ;
195192
196193 if let Some ( left_reloc) = left_reloc {
197194 let left_reloc_addr = left_reloc. address as usize ;
@@ -243,7 +240,7 @@ pub fn diff_data_section(
243240 }
244241 }
245242
246- if found_any_reloc_diffs {
243+ if found_any_relocs {
247244 if left_curr_addr < left_range. end - 1 {
248245 let len = left_range. end - left_curr_addr;
249246 let left_data = & left. data [ left_curr_addr..left_range. end ] ;
You can’t perform that action at this time.
0 commit comments