git://git.onelab.eu
/
sliver-openvswitch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
829d41b
)
datapath: Use NULL for null pointer in compat code.
author
Ben Pfaff
<blp@nicira.com>
Wed, 12 Jan 2011 17:49:44 +0000
(09:49 -0800)
committer
Ben 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
patch
|
blob
|
history
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
(file)
--- 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 =
0U
L;
+ skb->dst =
NUL
L;
}
#endif