From: Eric Dumazet Date: Sun, 13 Jan 2008 05:30:23 +0000 (-0800) Subject: [XFRM]: alg_key_len should be unsigned to avoid integer divides X-Git-Tag: v2.6.25-rc1~1162^2~763 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ba749ae98d5aa9d2ce9a7facde0deed454f92230;p=linux-2.6 [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 Signed-off-by: David S. Miller --- diff --git a/include/linux/xfrm.h b/include/linux/xfrm.h index 1131eabfaa..f8507eed0b 100644 --- a/include/linux/xfrm.h +++ b/include/linux/xfrm.h @@ -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]; };