]> git.baikalelectronics.ru Git - kernel.git/commit
lib/crc32.c: fix trivial typo in preprocessor condition
authorTobias Jordan <kernel@cdqe.de>
Fri, 16 Oct 2020 03:11:38 +0000 (20:11 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 16 Oct 2020 18:11:20 +0000 (11:11 -0700)
commit82cc5a69f084a04dfe3a3f8365a6cdd6b84fe7ba
tree2555f2a33a5afe9220366493af282050bc6cdd39
parentf98a3c4a3baae011ddfa1c6ca5f1e0f78c9b52f5
lib/crc32.c: fix trivial typo in preprocessor condition

Whether crc32_be needs a lookup table is chosen based on CRC_LE_BITS.
Obviously, the _be function should be governed by the _BE_ define.

This probably never pops up as it's hard to come up with a configuration
where CRC_BE_BITS isn't the same as CRC_LE_BITS and as nobody is using
bitwise CRC anyway.

Fixes: d32027cfe824 ("crc32: bolt on crc32c")
Signed-off-by: Tobias Jordan <kernel@cdqe.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Krzysztof Kozlowski <krzk@kernel.org>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Link: https://lkml.kernel.org/r/20200923182122.GA3338@agrajag.zerfleddert.de
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/crc32.c