patch-2.3.99-pre7 linux/net/x25/x25_timer.c

Next file: linux/Documentation/Changes
Previous file: linux/net/unix/af_unix.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.99-pre6/linux/net/x25/x25_timer.c linux/net/x25/x25_timer.c
@@ -111,8 +111,7 @@
 
 unsigned long x25_display_timer(struct sock *sk)
 {
-	if (sk->protinfo.x25->timer.prev == NULL &&
-	    sk->protinfo.x25->timer.next == NULL)
+	if (!timer_pending(&sk->protinfo.x25->timer))
 		return 0;
 
 	return sk->protinfo.x25->timer.expires - jiffies;


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