PCI: rockchip: Move configuration accesses into rockchip_pcie_cfg_atu()
[linux-2.6-microblaze.git] / crypto / algapi.c
index 6b52e8f..9eed4ef 100644 (file)
@@ -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;
                }