[ovs-dev] [PATCH 09/19] datapath: Use NULL in skb_cb_mpls_bos
Isaku Yamahata
yamahata at valinux.co.jp
Tue Dec 25 06:54:41 UTC 2012
Although this can be merged into the 1st patch, the patch itself
Looks good.
On Mon, Dec 24, 2012 at 11:35:15AM +0900, Simon Horman wrote:
> Use NULL instead of 0 to denote a NULL pointer.
>
> Signed-off-by: Simon Horman <horms at verge.net.au>
> ---
> 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
> dev at openvswitch.org
> http://openvswitch.org/mailman/listinfo/dev
>
--
yamahata
More information about the dev
mailing list