Skip to content

Commit cb195b3

Browse files
ambarusherbertx
authored andcommitted
crypto: dh - return unsigned int for dh_data_size()
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>
1 parent 6e97e08 commit cb195b3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎crypto/dh_helper.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ static inline const u8 *dh_unpack_data(void *dst, const void *src, size_t size)
2828
return src + size;
2929
}
3030

31-
static inline int dh_data_size(const struct dh *p)
31+
static inline unsigned int dh_data_size(const struct dh *p)
3232
{
3333
return p->key_size + p->p_size + p->g_size;
3434
}

0 commit comments

Comments
 (0)