qemu-e2k/scripts/coccinelle
Peter Maydell 01b3e68bb1 scripts/coccinelle: New script to remove unnecessary timer_del() calls
Now that timer_free() implicitly calls timer_del(), sequences
  timer_del(mytimer);
  timer_free(mytimer);

can be simplified to just
  timer_free(mytimer);

Add a Coccinelle script to do this transformation.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20201215154107.3255-3-peter.maydell@linaro.org
2021-01-08 15:13:38 +00:00
..
cpu_restore_state.cocci
cpu-reset.cocci
err-bad-newline.cocci
error_propagate_null.cocci
error-use-after-free.cocci
errp-guard.cocci
exec_rw_const.cocci
inplace-byteswaps.cocci
memory-region-housekeeping.cocci
overflow_muldiv64.cocci
qobject.cocci
qom-parent-type.cocci qom: fix objects with improper parent type 2020-10-12 11:50:22 -04:00
remove_local_err.cocci
remove_muldiv64.cocci
return_directly.cocci
round.cocci
simplify_muldiv64.cocci
swap_muldiv64.cocci
tcg_gen_extract.cocci
timer-del-timer-free.cocci scripts/coccinelle: New script to remove unnecessary timer_del() calls 2021-01-08 15:13:38 +00:00
typecast.cocci
use-error_fatal.cocci