]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: aesni - remove unnecessary #define
authorValentin Rothberg <valentinrothberg@gmail.com>
Tue, 21 Oct 2014 09:35:32 +0000 (11:35 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 6 Nov 2014 15:14:59 +0000 (23:14 +0800)
commit7de8eb63f986a6d9dd86010bdc74b8b4470c6543
treeacff5eb508a1b2b1fd0a84ab6ee6f7f4820a39f4
parentaaf0acb9f43179245caf8f0be7655dcc752e03f8
crypto: aesni - remove unnecessary #define

The CPP identifier 'HAS_PCBC' is defined when the Kconfig
option CRYPTO_PCBC is set as 'y' or 'm', and is further
used in two ifdef blocks to conditionally compile source
code. This indirection hides the actual Kconfig dependency
and complicates readability. Moreover, it's inconsistent
with the rest of the ifdef blocks in the file, which
directly reference Kconfig options.

This patch removes 'HAS_PCBC' and replaces its occurrences
with the actual dependency on 'CRYPTO_PCBC' being set as
'y' or 'm'.

Signed-off-by: Valentin Rothberg <valentinrothberg@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/x86/crypto/aesni-intel_glue.c