[ovs-dev] [compat 1/2] datapath: Use NULL for null pointer in compat code.
Ben Pfaff
blp at nicira.com
Wed Jan 12 21:29:45 UTC 2011
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 at nicira.com>
---
datapath/linux-2.6/compat-2.6/include/net/dst.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
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 e51ac1d..f481a9d 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
--
1.7.1
More information about the dev
mailing list