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

Commit ba749ae9 authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller
Browse files

[XFRM]: alg_key_len should be unsigned to avoid integer divides



alg_key_len is currently defined as 'signed int'. This unfortunatly
leads to integer divides in several paths.

Converting it to unsigned is safe and saves 208 bytes of text on i386.

Signed-off-by: default avatarEric Dumazet <dada1@cosmosbay.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d88c305a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -92,7 +92,7 @@ struct xfrm_replay_state

struct xfrm_algo {
	char	alg_name[64];
	int	alg_key_len;    /* in bits */
	unsigned int	alg_key_len;    /* in bits */
	char	alg_key[0];
};