]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
crypto: dh - return unsigned int for dh_data_size()
authorTudor-Dan Ambarus <tudor.ambarus@microchip.com>
Fri, 29 Sep 2017 09:21:04 +0000 (12:21 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 12 Oct 2017 14:55:01 +0000 (22:55 +0800)
p->key_size, p->p_size, p->g_size are all of unsigned int type.

Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
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;
 }