Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cb195b36 authored by Tudor-Dan Ambarus's avatar Tudor-Dan Ambarus Committed by Herbert Xu
Browse files

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: default avatarTudor Ambarus <tudor.ambarus@microchip.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 6e97e08d
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -28,7 +28,7 @@ static inline const u8 *dh_unpack_data(void *dst, const void *src, size_t size)
	return src + 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;
	return p->key_size + p->p_size + p->g_size;
}
}