Skip to content

Commit

Permalink
Remove redundant line (AFLplusplus#2516)
Browse files Browse the repository at this point in the history
* Remove redundant line

* No need to mut this value
  • Loading branch information
ThomasTNO authored Sep 8, 2024
1 parent a5584bf commit 70f1c13
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions libafl/src/stages/calibrate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ where
let observers = executor.observers();
let map = observers[&self.map_observer_handle].as_ref();

let mut bitmap_size = map.count_bytes();
let bitmap_size = map.count_bytes();

if bitmap_size < 1 {
return Err(Error::invalid_corpus(
Expand All @@ -269,7 +269,6 @@ where
));
}

bitmap_size = bitmap_size.max(1); // just don't make it 0 because we take log2 of it later.
let psmeta = state
.metadata_map_mut()
.get_mut::<SchedulerMetadata>()
Expand Down

0 comments on commit 70f1c13

Please sign in to comment.