mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
net: remove redundant check for timer pending state before del_timer
As in del_timer() there has already placed a timer_pending() function to check whether the timer to be deleted is pending or not, it's unnecessary to check timer pending state again before del_timer() is called. Signed-off-by: Ying Xue <[email protected]> Cc: Eric Dumazet <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
2b3c9a850c
commit
25cc4ae913
11 changed files with 21 additions and 38 deletions
|
|
@ -2567,8 +2567,7 @@ bed:
|
|||
err);
|
||||
|
||||
/* If watchdog is still activated, kill it! */
|
||||
if(timer_pending(&(self->watchdog)))
|
||||
del_timer(&(self->watchdog));
|
||||
del_timer(&(self->watchdog));
|
||||
|
||||
IRDA_DEBUG(1, "%s(), ...waking up !\n", __func__);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue