]> git.ipfire.org Git - thirdparty/kernel/stable.git/blobdiff - crypto/dh_helper.c
crypto: dh - return unsigned int for dh_data_size()
[thirdparty/kernel/stable.git] / crypto / dh_helper.c
index 8ba8a3f826200c611e4e340df4502dab2b112c40..69869dad344ad1217c08336c97d63d9b6ad1f34c 100644 (file)
@@ -28,7 +28,7 @@ static inline const u8 *dh_unpack_data(void *dst, const void *src, size_t size)
        return src + size;
 }
 
-static inline int dh_data_size(const struct dh *p)
+static inline unsigned int dh_data_size(const struct dh *p)
 {
        return p->key_size + p->p_size + p->g_size;
 }