datapath: Use NULL for null pointer in compat code.
authorBen Pfaff <blp@nicira.com>
Wed, 12 Jan 2011 17:49:44 +0000 (09:49 -0800)
committerBen Pfaff <blp@nicira.com>
Thu, 13 Jan 2011 20:25:57 +0000 (12:25 -0800)
Fixes a sparse warning on 2.6.18:

datapath/linux-2.6/compat-2.6/include/net/dst.h:12:20: warning: Using plain
integer as NULL pointer

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Jesse Gross <jesse@nicira.com>
datapath/linux-2.6/compat-2.6/include/net/dst.h

index e51ac1d..f481a9d 100644 (file)
@@ -9,7 +9,7 @@ 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