diff options
author | Eric Dumazet <dada1@cosmosbay.com> | 2008-01-13 00:30:23 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:02:00 -0500 |
commit | ba749ae98d5aa9d2ce9a7facde0deed454f92230 (patch) | |
tree | 2f4752db0bf40bb590db57435f0a609fa5f8090b /include | |
parent | d88c305a03c37a95c4b27e1a0c2e387bb7ce80df (diff) |
[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>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/xfrm.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/xfrm.h b/include/linux/xfrm.h index 1131eabfaa2a..f8507eed0b79 100644 --- a/include/linux/xfrm.h +++ b/include/linux/xfrm.h | |||
@@ -92,7 +92,7 @@ struct xfrm_replay_state | |||
92 | 92 | ||
93 | struct xfrm_algo { | 93 | struct xfrm_algo { |
94 | char alg_name[64]; | 94 | char alg_name[64]; |
95 | int alg_key_len; /* in bits */ | 95 | unsigned int alg_key_len; /* in bits */ |
96 | char alg_key[0]; | 96 | char alg_key[0]; |
97 | }; | 97 | }; |
98 | 98 | ||