]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - net/xfrm/xfrm_hash.h
xfrm: use "unsigned int" in __xfrm6_pref_hash()
[karo-tx-linux.git] / net / xfrm / xfrm_hash.h
index 666c5ffe929dca388b218d99c2d71946a231872f..eaea9c4fb3b0e6ec8903cfc5456519e8d4e7dcd1 100644 (file)
@@ -54,8 +54,8 @@ static inline unsigned int __xfrm4_dpref_spref_hash(const xfrm_address_t *daddr,
 static inline unsigned int __xfrm6_pref_hash(const xfrm_address_t *addr,
                                             __u8 prefixlen)
 {
-       int pdw;
-       int pbi;
+       unsigned int pdw;
+       unsigned int pbi;
        u32 initval = 0;
 
        pdw = prefixlen >> 5;     /* num of whole u32 in prefix */