git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
x86: unify pmd_present
[safe/jmp/linux-2.6]
/
crypto
/
lrw.c
diff --git
a/crypto/lrw.c
b/crypto/lrw.c
index
9d52e58
..
8ef664e
100644
(file)
--- a/
crypto/lrw.c
+++ b/
crypto/lrw.c
@@
-91,8
+91,9
@@
struct sinfo {
static inline void inc(be128 *iv)
{
static inline void inc(be128 *iv)
{
- if (!(iv->b = cpu_to_be64(be64_to_cpu(iv->b) + 1)))
- iv->a = cpu_to_be64(be64_to_cpu(iv->a) + 1);
+ be64_add_cpu(&iv->b, 1);
+ if (!iv->b)
+ be64_add_cpu(&iv->a, 1);
}
static inline void lrw_round(struct sinfo *s, void *dst, const void *src)
}
static inline void lrw_round(struct sinfo *s, void *dst, const void *src)