patch-2.3.99-pre7 linux/net/netrom/nr_timer.c

Next file: linux/net/netsyms.c
Previous file: linux/net/netrom/nr_loopback.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.99-pre6/linux/net/netrom/nr_timer.c linux/net/netrom/nr_timer.c
@@ -129,8 +129,7 @@
 
 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)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)