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 /include/net/tipc.h | |
parent | 72a338bcc6ae51e01c95d687e5d775e3fe52eff1 (diff) | |
download | linux-d869dea664e662a4380ccf59cb9be9888a7af53a.tar.bz2 |
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 'include/net/tipc.h')
-rw-r--r-- | include/net/tipc.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/net/tipc.h b/include/net/tipc.h index 07670ec022a7..f0e7e6bc1bef 100644 --- a/include/net/tipc.h +++ b/include/net/tipc.h @@ -44,11 +44,11 @@ struct tipc_basic_hdr { __be32 w[4]; }; -static inline u32 tipc_hdr_rps_key(struct tipc_basic_hdr *hdr) +static inline __be32 tipc_hdr_rps_key(struct tipc_basic_hdr *hdr) { u32 w0 = ntohl(hdr->w[0]); bool keepalive_msg = (w0 & KEEPALIVE_MSG_MASK) == KEEPALIVE_MSG_MASK; - int key; + __be32 key; /* Return source node identity as key */ if (likely(!keepalive_msg)) |