mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 19:56:18 +00:00
crypto: api - Use formatting of module name
Besdies, for the old code, gcc-4.3.3 produced this warning: "format not a string literal and no format arguments" Signed-off-by: Alex Riesen <raa.lkml@gmail.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
a0cfae59f8
commit
aa07a6990f
1 changed files with 3 additions and 6 deletions
|
@ -217,14 +217,11 @@ struct crypto_alg *crypto_larval_lookup(const char *name, u32 type, u32 mask)
|
||||||
|
|
||||||
alg = crypto_alg_lookup(name, type, mask);
|
alg = crypto_alg_lookup(name, type, mask);
|
||||||
if (!alg) {
|
if (!alg) {
|
||||||
char tmp[CRYPTO_MAX_ALG_NAME];
|
request_module("%s", name);
|
||||||
|
|
||||||
request_module(name);
|
|
||||||
|
|
||||||
if (!((type ^ CRYPTO_ALG_NEED_FALLBACK) & mask &
|
if (!((type ^ CRYPTO_ALG_NEED_FALLBACK) & mask &
|
||||||
CRYPTO_ALG_NEED_FALLBACK) &&
|
CRYPTO_ALG_NEED_FALLBACK))
|
||||||
snprintf(tmp, sizeof(tmp), "%s-all", name) < sizeof(tmp))
|
request_module("%s-all", name);
|
||||||
request_module(tmp);
|
|
||||||
|
|
||||||
alg = crypto_alg_lookup(name, type, mask);
|
alg = crypto_alg_lookup(name, type, mask);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue