BACKPORT: 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. Change-Id: I73920d0a210f1ef2229a406c49844970208d6ada 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> Signed-off-by: Sorayukii <sorayukii69@gmail.com>
This commit is contained in:
parent
193099cf45
commit
33d7fe4ead
1 changed files with 1 additions and 1 deletions
|
|
@ -1260,7 +1260,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));
|
||||
|
|
|
|||
Loading…
Reference in a new issue