]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - include/net/tipc.h
flow_dissector: do not rely on implicit casts
[linux.git] / include / net / tipc.h
index 07670ec022a714bd9a675d2ffd89455f10a04a01..f0e7e6bc1befa83b0e23e9ef3d5c4855c5bd135f 100644 (file)
@@ -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))