ovsdb: Synchronize comments and code in ovsdb_file_commit().
[sliver-openvswitch.git] / datapath / linux-2.6 / compat-2.6 / include / net / dst.h
index edb0f75..f481a9d 100644 (file)
@@ -3,16 +3,15 @@
 
 #include_next <net/dst.h>
 
-#include <linux/version.h>
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,31)
+#ifndef HAVE_SKB_DST_ACCESSOR_FUNCS
 
 static inline void skb_dst_drop(struct sk_buff *skb)
 {
        if (skb->dst)
                dst_release(skb_dst(skb));
-       skb->dst = 0UL;
+       skb->dst = NULL;
 }
 
-#endif /* linux kernel < 2.6.31 */
+#endif
 
 #endif