decnet: remove private wrappers of endian helpers
[cascardo/linux.git] / include / net / dn_fib.h
index 3012511..c378be7 100644 (file)
@@ -181,9 +181,9 @@ static inline void dn_fib_res_put(struct dn_fib_res *res)
 
 static inline __le16 dnet_make_mask(int n)
 {
-        if (n)
-                return dn_htons(~((1<<(16-n))-1));
-        return 0;
+       if (n)
+               return cpu_to_le16(~((1 << (16 - n)) - 1));
+       return cpu_to_le16(0);
 }
 
 #endif /* _NET_DN_FIB_H */