X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=crypto%2Flrw.c;h=8ef664e3bcd9a90c93a5436e551549e72df1ff82;hb=18c73f90421f9a87a0f6bc3a08880d0f1f9b2a74;hp=9d52e580d10a4d34b5117f801f98cf6bd4249b5c;hpb=f0e2dcffae8701f00b34bce90e762eb798dea5b1;p=linux-2.6-omap-h63xx.git diff --git a/crypto/lrw.c b/crypto/lrw.c index 9d52e580d10..8ef664e3bcd 100644 --- a/crypto/lrw.c +++ b/crypto/lrw.c @@ -91,8 +91,9 @@ struct sinfo { 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)