mirror of
https://github.com/adulau/aha.git
synced 2024-12-29 12:16:20 +00:00
[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: Eric Dumazet <dada1@cosmosbay.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
d88c305a03
commit
ba749ae98d
1 changed files with 1 additions and 1 deletions
|
@ -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];
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue