diff options
author | Paolo Abeni <pabeni@redhat.com> | 2018-05-07 12:06:03 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-05-08 00:02:41 -0400 |
commit | d869dea664e662a4380ccf59cb9be9888a7af53a (patch) | |
tree | bcd401979d922265c519a57190a10e8df42c9dd9 /net | |
parent | 72a338bcc6ae51e01c95d687e5d775e3fe52eff1 (diff) | |
download | linux-stable-d869dea664e662a4380ccf59cb9be9888a7af53a.tar.gz linux-stable-d869dea664e662a4380ccf59cb9be9888a7af53a.tar.bz2 linux-stable-d869dea664e662a4380ccf59cb9be9888a7af53a.zip |
flow_dissector: do not rely on implicit casts
This change fixes a couple of type mismatch reported by the sparse
tool, explicitly using the requested type for the offending arguments.
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Acked-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/core/flow_dissector.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/flow_dissector.c b/net/core/flow_dissector.c index 030d4ca177fb..4fc1e84d77ec 100644 --- a/net/core/flow_dissector.c +++ b/net/core/flow_dissector.c @@ -1316,7 +1316,7 @@ u32 skb_get_poff(const struct sk_buff *skb) { struct flow_keys_basic keys; - 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)) return 0; return __skb_get_poff(skb, skb->data, &keys, skb_headlen(skb)); |