projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d88c305
)
[XFRM]: alg_key_len should be unsigned to avoid integer divides
author
Eric Dumazet
<dada1@cosmosbay.com>
Sun, 13 Jan 2008 05:30:23 +0000
(21:30 -0800)
committer
David S. Miller
<davem@davemloft.net>
Mon, 28 Jan 2008 23:02:00 +0000
(15:02 -0800)
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
patch
|
blob
|
blame
|
history
diff --git
a/include/linux/xfrm.h
b/include/linux/xfrm.h
index 1131eabfaa2ab568ba6ae0eaac48988ded5ca10b..f8507eed0b7982f992cb199f170a6c34b4d693c0 100644
(file)
--- 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];
};