summaryrefslogtreecommitdiffstats
path: root/net/netrom/nr_timer.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/netrom/nr_timer.c')
-rw-r--r--net/netrom/nr_timer.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/netrom/nr_timer.c b/net/netrom/nr_timer.c
index b3fbd012e..ac62ad54a 100644
--- a/net/netrom/nr_timer.c
+++ b/net/netrom/nr_timer.c
@@ -129,8 +129,7 @@ void nr_stop_heartbeat(struct sock *sk)
int nr_t1timer_running(struct sock *sk)
{
- return (sk->protinfo.nr->t1timer.prev != NULL ||
- sk->protinfo.nr->t1timer.next != NULL);
+ return timer_pending(&sk->protinfo.nr->t1timer);
}
static void nr_heartbeat_expiry(unsigned long param)