X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=include%2Fnet%2Fdst.h;h=36d54fc248b001cc1bbd9915039c005931fd14d1;hb=40e22e8f3d4d4f1ff68fb03683f007c53ee8b348;hp=bee8b84d329db3522f0e9fc7f3991e4579f7963c;hpb=ed03f430cdc8c802652467e9097606fedc2c7abc;p=~andy%2Flinux diff --git a/include/net/dst.h b/include/net/dst.h index bee8b84d329..36d54fc248b 100644 --- a/include/net/dst.h +++ b/include/net/dst.h @@ -8,7 +8,6 @@ #ifndef _NET_DST_H #define _NET_DST_H -#include #include #include #include @@ -225,16 +224,7 @@ static inline void dst_set_expires(struct dst_entry *dst, int timeout) /* Output packet to network from transport. */ static inline int dst_output(struct sk_buff *skb) { - int err; - - for (;;) { - err = skb->dst->output(skb); - - if (likely(err == 0)) - return err; - if (unlikely(err != NET_XMIT_BYPASS)) - return err; - } + return skb->dst->output(skb); } /* Input packet from network to transport. */