mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 19:29:37 +00:00
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 <vthakkar1994@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
3d0e486eef
commit
4eef520d24
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue