diff options
author | Vaishali Thakkar | 2015-03-06 11:53:35 +0100 |
---|---|---|
committer | Greg Kroah-Hartman | 2015-03-16 15:46:07 +0100 |
commit | 6501c8e7d86cca5fab74f873810cbc573273d1b4 (patch) | |
tree | ef117cb7292bdd08336dcccdef47c5715ccad46b /drivers/staging/rtl8712/osdep_service.h | |
parent | Staging: skein: Remove do-while(0) from single statement macros (diff) | |
download | kernel-qcow2-linux-6501c8e7d86cca5fab74f873810cbc573273d1b4.tar.gz kernel-qcow2-linux-6501c8e7d86cca5fab74f873810cbc573273d1b4.tar.xz kernel-qcow2-linux-6501c8e7d86cca5fab74f873810cbc573273d1b4.zip |
Staging: rtl8712: Eliminate use of _cancel_timer_ex
Use timer API function del_timer_sync instead of driver
specific function _cancel_timer_ex as besides deactivating
a timer, it ensures that the timer is stopped on all
CPUs before the driver exists. Also, definition of function
_cancel_timer_ex is removed as it is no longer needed after
this change.
This is done using Coccinelle and semantic patch used for
this is as follows:
@@ expression x; @@
- _cancel_timer_ex (&x);
+ del_timer_sync (&x);
Signed-off-by: Vaishali Thakkar <vthakkar1994@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8712/osdep_service.h')
-rw-r--r-- | drivers/staging/rtl8712/osdep_service.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/staging/rtl8712/osdep_service.h b/drivers/staging/rtl8712/osdep_service.h index c6dc3629f4d2..33be7788945a 100644 --- a/drivers/staging/rtl8712/osdep_service.h +++ b/drivers/staging/rtl8712/osdep_service.h @@ -92,11 +92,6 @@ static inline void sleep_schedulable(int ms) schedule_timeout(delta); } -static inline unsigned char _cancel_timer_ex(struct timer_list *ptimer) -{ - return del_timer(ptimer); -} - static inline void flush_signals_thread(void) { if (signal_pending(current)) |