net: skbuff.h: fix using plain integer as NULL warning
authorYueHaibing <yuehaibing@huawei.com>
Wed, 8 Aug 2018 11:40:31 +0000 (19:40 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Aug 2018 21:10:01 +0000 (14:10 -0700)
Fixes the following sparse warning:
./include/linux/skbuff.h:2365:58: warning: Using plain integer as NULL pointer

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/skbuff.h

index 7ebdf15..7e237a6 100644 (file)
@@ -2362,7 +2362,7 @@ static inline void skb_probe_transport_header(struct sk_buff *skb,
        if (skb_transport_header_was_set(skb))
                return;
 
-       if (skb_flow_dissect_flow_keys_basic(skb, &keys, 0, 0, 0, 0, 0))
+       if (skb_flow_dissect_flow_keys_basic(skb, &keys, NULL, 0, 0, 0, 0))
                skb_set_transport_header(skb, keys.control.thoff);
        else
                skb_set_transport_header(skb, offset_hint);