]> err.no Git - linux-2.6/commit
[XFRM]: alg_key_len should be unsigned to avoid integer divides
authorEric Dumazet <dada1@cosmosbay.com>
Sun, 13 Jan 2008 05:30:23 +0000 (21:30 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 23:02:00 +0000 (15:02 -0800)
commitba749ae98d5aa9d2ce9a7facde0deed454f92230
tree2f4752db0bf40bb590db57435f0a609fa5f8090b
parentd88c305a03c37a95c4b27e1a0c2e387bb7ce80df
[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>
include/linux/xfrm.h