diff options
author | Arnd Bergmann | 2024-04-03 10:06:42 +0200 |
---|---|---|
committer | Herbert Xu | 2024-04-12 15:07:51 +0800 |
commit | 42c2d7d02977ef09d434b1f5b354f5bc6c1027ab (patch) | |
tree | f95ddf0921f805a3fb60d41ba13c2cebc87ee610 /kernel/padata.c | |
parent | f5c2cf9d14be283e5240c04d03ad96577d55f9f4 (diff) |
crypto: ccp - drop platform ifdef checks
When both ACPI and OF are disabled, the dev_vdata variable is unused:
drivers/crypto/ccp/sp-platform.c:33:34: error: unused variable 'dev_vdata' [-Werror,-Wunused-const-variable]
This is not a useful configuration, and there is not much point in saving
a few bytes when only one of the two is enabled, so just remove all
these ifdef checks and rely on of_match_node() and acpi_match_device()
returning NULL when these subsystems are disabled.
Fixes: 6c5063434098 ("crypto: ccp - Add ACPI support")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'kernel/padata.c')
0 files changed, 0 insertions, 0 deletions