Staging: rtl8712: Use del_timer
PATCH 1/1 Staging: rtl8712: Use del_timer
Use timer API function del_timer instead of driver specific function _cancel_timer_ex as it is a standard way for deactivating a timer.
This is done using Coccinelle and semantic patch used for this is as follows:
@@ expression x; @@
- _cancel_timer_ex (&x);
+ del_timer (&x);
Signed-off-by Vaishali Thakkar <[email protected]>
---
v1: Here, I am not sure whether I should use del_timer or
del_timer_sync [though function definition is using del_timer]. That's why I am sending a sample patch. I will go for removing all cases of _cancel_timer_ex once I have cleae idea about the use of both functions.
drivers/staging/rtl8712/rtl8712_recv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/rtl8712/rtl8712_recv.c +1 -1
@@ -609,7 +609,7 @@ static int recv_indicatepkt_reorder(struct _adapter *padapter,spin_unlock_irqrestore (&ppending_recvframe_queue->lock, irql); }else {spin_unlock_irqrestore (&ppending_recvframe_queue->lock, irql); -_cancel_timer_ex (&preorder_ctrl->reordering_ctrl_timer); +del_timer (&preorder_ctrl->reordering_ctrl_timer); }return _SUCCESS; _err_exit:
Signature · 1 line
1.9.1