diff options
author | Alex Riesen <raa.lkml@gmail.com> | 2009-06-02 14:13:14 +1000 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2009-06-02 14:13:14 +1000 |
commit | aa07a6990f4b6a8ef9fc538dea55bac6f92255f2 (patch) | |
tree | 64056474aa12b3af72b0331479f9812070e13342 /crypto | |
parent | a0cfae59f8381c5c670fce2cc3de70b35421f920 (diff) | |
download | linux-exynos-aa07a6990f4b6a8ef9fc538dea55bac6f92255f2.tar.gz linux-exynos-aa07a6990f4b6a8ef9fc538dea55bac6f92255f2.tar.bz2 linux-exynos-aa07a6990f4b6a8ef9fc538dea55bac6f92255f2.zip |
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>
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/api.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/crypto/api.c b/crypto/api.c index f500fb840be9..d5944f92b416 100644 --- a/crypto/api.c +++ b/crypto/api.c @@ -217,14 +217,11 @@ struct crypto_alg *crypto_larval_lookup(const char *name, u32 type, u32 mask) alg = crypto_alg_lookup(name, type, mask); if (!alg) { - char tmp[CRYPTO_MAX_ALG_NAME]; - - request_module(name); + request_module("%s", name); if (!((type ^ CRYPTO_ALG_NEED_FALLBACK) & mask & - CRYPTO_ALG_NEED_FALLBACK) && - snprintf(tmp, sizeof(tmp), "%s-all", name) < sizeof(tmp)) - request_module(tmp); + CRYPTO_ALG_NEED_FALLBACK)) + request_module("%s-all", name); alg = crypto_alg_lookup(name, type, mask); } |