Use NULL instead of 0 to denote a NULL pointer.
Signed-off-by: Simon Horman <[email protected]>
---
datapath/datapath.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/datapath/datapath.c b/datapath/datapath.c
index e537b6d..2a36fb0 100644
--- a/datapath/datapath.c
+++ b/datapath/datapath.c
@@ -103,7 +103,7 @@ void skb_cb_set_mpls_bos(struct sk_buff *skb)
unsigned char *skb_cb_mpls_bos(const struct sk_buff *skb)
{
return OVS_CB(skb)->mpls_bos ?
- skb_mac_header(skb) + OVS_CB(skb)->mpls_bos : 0;
+ skb_mac_header(skb) + OVS_CB(skb)->mpls_bos : NULL;
}
ptrdiff_t skb_cb_mpls_bos_offset(const struct sk_buff *skb)
--
1.7.10.4
_______________________________________________
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev