提交 ba749ae9 编写于 作者: E Eric Dumazet 提交者: David S. Miller

[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: NEric Dumazet <dada1@cosmosbay.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 d88c305a
......@@ -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];
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册