diff options
author | 2017-06-02 17:49:10 -0700 | |
---|---|---|
committer | 2017-06-02 17:49:10 -0700 | |
commit | eadcbfa58ae8693f0d6a0f591d8f51d55cf068e1 (patch) | |
tree | cff3f1c56a8bf15138b652ee9dab50dddd6edee5 /crypto/algapi.c | |
parent | Input: tm2-touchkey - use LEN_ON as boolean value instead of LED_FULL (diff) | |
parent | Linux 4.12-rc3 (diff) | |
download | wireguard-linux-eadcbfa58ae8693f0d6a0f591d8f51d55cf068e1.tar.xz wireguard-linux-eadcbfa58ae8693f0d6a0f591d8f51d55cf068e1.zip |
Merge tag 'v4.12-rc3' into for-linus
Merge with mainline to get acpi_dev_present() needed by patches to
axp20x-pek driver.
Diffstat (limited to 'crypto/algapi.c')
-rw-r--r-- | crypto/algapi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/algapi.c b/crypto/algapi.c index 6b52e8f0b95f..9eed4ef9c971 100644 --- a/crypto/algapi.c +++ b/crypto/algapi.c @@ -963,11 +963,11 @@ void crypto_inc(u8 *a, unsigned int size) u32 c; if (IS_ENABLED(CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS) || - !((unsigned long)b & (__alignof__(*b) - 1))) + IS_ALIGNED((unsigned long)b, __alignof__(*b))) for (; size >= 4; size -= 4) { c = be32_to_cpu(*--b) + 1; *b = cpu_to_be32(c); - if (c) + if (likely(c)) return; } |