mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
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>
This commit is contained in:
parent
72a338bcc6
commit
d869dea664
2 changed files with 3 additions and 3 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue