From: Ben Pfaff Date: Wed, 12 Jan 2011 17:49:44 +0000 (-0800) Subject: datapath: Use NULL for null pointer in compat code. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bbdc31bcff1efb9638e479b7e33b701e1159c7fe;p=openvswitch datapath: Use NULL for null pointer in compat code. 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 Acked-by: Jesse Gross --- diff --git a/datapath/linux-2.6/compat-2.6/include/net/dst.h b/datapath/linux-2.6/compat-2.6/include/net/dst.h index e51ac1d6..f481a9d3 100644 --- a/datapath/linux-2.6/compat-2.6/include/net/dst.h +++ b/datapath/linux-2.6/compat-2.6/include/net/dst.h @@ -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