X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=net%2Fax25%2Fax25_subr.c;h=034aa10a5198bd6dd88ba9eb431f9f3088600d98;hb=ad619800e4e034cad44299b2a22df9eebb043ac3;hp=d8f2157331757a47d5272ac77cef9fee97544cc8;hpb=2cc3a8f6ac0fb1e6095a47001d31aadcf9722bde;p=linux-2.6 diff --git a/net/ax25/ax25_subr.c b/net/ax25/ax25_subr.c index d8f2157331..034aa10a51 100644 --- a/net/ax25/ax25_subr.c +++ b/net/ax25/ax25_subr.c @@ -64,20 +64,15 @@ void ax25_frames_acked(ax25_cb *ax25, unsigned short nr) void ax25_requeue_frames(ax25_cb *ax25) { - struct sk_buff *skb, *skb_prev = NULL; + struct sk_buff *skb; /* * Requeue all the un-ack-ed frames on the output queue to be picked * up by ax25_kick called from the timer. This arrangement handles the * possibility of an empty output queue. */ - while ((skb = skb_dequeue(&ax25->ack_queue)) != NULL) { - if (skb_prev == NULL) - skb_queue_head(&ax25->write_queue, skb); - else - skb_append(skb_prev, skb, &ax25->write_queue); - skb_prev = skb; - } + while ((skb = skb_dequeue_tail(&ax25->ack_queue)) != NULL) + skb_queue_head(&ax25->write_queue, skb); } /*