diff options
| author | Martin Kaiser <[email protected]> | 2022-01-15 17:55:31 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2022-01-25 16:27:23 +0100 |
| commit | 2bd4aa6acb115d6fd9225401e3cf38852f6ec7de (patch) | |
| tree | 9084101b28883699aec7cb47c36fe5841f285205 /tools/perf/scripts/python/libxed.py | |
| parent | 9224cda4afc4e3700125a9eb883f4827fe15fe66 (diff) | |
staging: r8188eu: remove _cancel_timer wrapper
Remove the _cancel_timer wrapper function and call del_timer_sync
directly.
None of the callers needs the bcancelled variable that's populated by
_cancel_timer, these variables can be removed in the calling functions.
rtw_surveydone_event_callback calls _cancel_timer only if it believes
that the timer is currently running. We can drop this. It's safe to
call del_timer_sync when the timer is not running. The timer in question,
scan_to_timer, is used only for the site survey command (the rtw_survey
functions) so we won't be stopping it while it's in use by someone else.
Signed-off-by: Martin Kaiser <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions