]> git.ipfire.org Git - people/arne_f/kernel.git/blobdiff - net/sctp/ipv6.c
sctp: fix some type cast warnings introduced since very beginning
[people/arne_f/kernel.git] / net / sctp / ipv6.c
index 7fe9e1d1b7ec5455d64c554d00c6282ccaccb532..a6dfa86c02016e3ff81f10f729a56e6673affc68 100644 (file)
@@ -738,7 +738,7 @@ static int sctp_v6_skb_iif(const struct sk_buff *skb)
 /* Was this packet marked by Explicit Congestion Notification? */
 static int sctp_v6_is_ce(const struct sk_buff *skb)
 {
-       return *((__u32 *)(ipv6_hdr(skb))) & htonl(1 << 20);
+       return *((__u32 *)(ipv6_hdr(skb))) & (__force __u32)htonl(1 << 20);
 }
 
 /* Dump the v6 addr to the seq file. */