projects
/
profile
/
ivi
/
kernel-adaptation-intel-automotive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0cfae5
)
crypto: api - Use formatting of module name
author
Alex Riesen
<raa.lkml@gmail.com>
Tue, 2 Jun 2009 04:13:14 +0000
(14:13 +1000)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Tue, 2 Jun 2009 04:13:14 +0000
(14:13 +1000)
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>
crypto/api.c
patch
|
blob
|
history
diff --git
a/crypto/api.c
b/crypto/api.c
index
f500fb8
..
d5944f9
100644
(file)
--- 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);
}