From bbdc31bcff1efb9638e479b7e33b701e1159c7fe Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Wed, 12 Jan 2011 09:49:44 -0800 Subject: [PATCH] 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 --- datapath/linux-2.6/compat-2.6/include/net/dst.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 e51ac1d69..f481a9d3f 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 -- 2.43.0