summaryrefslogtreecommitdiffstats
path: root/net/lapb/lapb_iface.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/lapb/lapb_iface.c')
-rw-r--r--net/lapb/lapb_iface.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/lapb/lapb_iface.c b/net/lapb/lapb_iface.c
index 75615ee3e..587304bca 100644
--- a/net/lapb/lapb_iface.c
+++ b/net/lapb/lapb_iface.c
@@ -196,12 +196,12 @@ int lapb_getparms(void *token, struct lapb_parms_struct *parms)
parms->window = lapb->window;
parms->mode = lapb->mode;
- if (lapb->t1timer.prev == NULL && lapb->t1timer.next == NULL)
+ if (!timer_pending(&lapb->t1timer))
parms->t1timer = 0;
else
parms->t1timer = (lapb->t1timer.expires - jiffies) / HZ;
- if (lapb->t2timer.prev == NULL && lapb->t2timer.next == NULL)
+ if (!timer_pending(&lapb->t2timer))
parms->t2timer = 0;
else
parms->t2timer = (lapb->t2timer.expires - jiffies) / HZ;