summaryrefslogtreecommitdiffstats
path: root/drivers/isdn/hisax/fsm.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/isdn/hisax/fsm.c')
-rw-r--r--drivers/isdn/hisax/fsm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/isdn/hisax/fsm.c b/drivers/isdn/hisax/fsm.c
index 665fa2c74..d0d356cf5 100644
--- a/drivers/isdn/hisax/fsm.c
+++ b/drivers/isdn/hisax/fsm.c
@@ -156,7 +156,7 @@ FsmAddTimer(struct FsmTimer *ft,
(long) ft, millisec, where);
#endif
- if (ft->tl.next || ft->tl.prev) {
+ if (timer_pending(&ft->tl)) {
printk(KERN_WARNING "FsmAddTimer: timer already active!\n");
ft->fi->printdebug(ft->fi, "FsmAddTimer already active!");
return -1;
@@ -180,7 +180,7 @@ FsmRestartTimer(struct FsmTimer *ft,
(long) ft, millisec, where);
#endif
- if (ft->tl.next || ft->tl.prev)
+ if (timer_pending(&ft->tl))
del_timer(&ft->tl);
init_timer(&ft->tl);
ft->event = event;