Skip to content

Commit fedab72

Browse files
committed
remove unneeded variable
1 parent ddc4a97 commit fedab72

File tree

3 files changed

+0
-6
lines changed

3 files changed

+0
-6
lines changed

accel/tcg/cpu-exec.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ u8 afl_compcov_level;
8585
__thread abi_ulong afl_prev_loc;
8686

8787
struct cmp_map *__afl_cmp_map;
88-
__thread u32 __afl_cmp_counter;
8988

9089
/* Set in the child process in forkserver mode: */
9190

accel/tcg/tcg-runtime.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,6 @@ void HELPER(afl_cmplog_8)(target_ulong cur_loc, target_ulong arg1,
122122

123123
u32 hits = __afl_cmp_map->headers[k].hits;
124124
__afl_cmp_map->headers[k].hits = hits + 1;
125-
// if (!__afl_cmp_map->headers[k].cnt)
126-
// __afl_cmp_map->headers[k].cnt = __afl_cmp_counter++;
127125

128126
__afl_cmp_map->headers[k].shape = 0;
129127

@@ -142,8 +140,6 @@ void HELPER(afl_cmplog_16)(target_ulong cur_loc, target_ulong arg1,
142140

143141
u32 hits = __afl_cmp_map->headers[k].hits;
144142
__afl_cmp_map->headers[k].hits = hits + 1;
145-
// if (!__afl_cmp_map->headers[k].cnt)
146-
// __afl_cmp_map->headers[k].cnt = __afl_cmp_counter++;
147143

148144
__afl_cmp_map->headers[k].shape = 1;
149145

qemuafl/common.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ extern afl_persistent_hook_fn afl_persistent_hook_ptr;
114114
extern __thread abi_ulong afl_prev_loc;
115115

116116
extern struct cmp_map *__afl_cmp_map;
117-
extern __thread u32 __afl_cmp_counter;
118117

119118
void afl_setup(void);
120119
void afl_forkserver(CPUState *cpu);

0 commit comments

Comments
 (0)