Commit:     ba749ae98d5aa9d2ce9a7facde0deed454f92230
Parent:     d88c305a03c37a95c4b27e1a0c2e387bb7ce80df
Author:     Eric Dumazet <[EMAIL PROTECTED]>
AuthorDate: Sat Jan 12 21:30:23 2008 -0800
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Mon Jan 28 15:02:00 2008 -0800

    [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 <[EMAIL PROTECTED]>
    Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
 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 1131eab..f8507ee 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];
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to