mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 04:18:58 +00:00
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>
This commit is contained in:
parent
6e97e08d43
commit
cb195b3625
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user