diff options
author | Michal Ludvig <michal@logix.cz> | 2006-07-16 18:14:58 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2006-09-20 21:41:00 -0400 |
commit | 58ec4152895b96f047dcf5e490ee49b4c574dec3 (patch) | |
tree | 2cc6316aaf70ffd7c43ae9677f0ba35903b9de9d /drivers/crypto/padlock-sha.c | |
parent | 5644bda5d6aa17a70b8842eb56365d501a5da159 (diff) |
[CRYPTO] padlock-sha: TFMs don't need to be static
TFMs are local variables. No need to declare them
static. After all one is enough.
Signed-off-by: Michal Ludvig <michal@logix.cz>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/padlock-sha.c')
-rw-r--r-- | drivers/crypto/padlock-sha.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/crypto/padlock-sha.c b/drivers/crypto/padlock-sha.c index 95e9971d1a70..b028db61c301 100644 --- a/drivers/crypto/padlock-sha.c +++ b/drivers/crypto/padlock-sha.c | |||
@@ -262,28 +262,28 @@ static struct crypto_alg sha256_alg = { | |||
262 | 262 | ||
263 | static void __init padlock_sha_check_fallbacks(void) | 263 | static void __init padlock_sha_check_fallbacks(void) |
264 | { | 264 | { |
265 | static struct crypto_tfm *tfm_sha1, *tfm_sha256; | 265 | struct crypto_tfm *tfm; |
266 | 266 | ||
267 | /* We'll try to allocate one TFM for each fallback | 267 | /* We'll try to allocate one TFM for each fallback |
268 | * to test that the modules are available. */ | 268 | * to test that the modules are available. */ |
269 | tfm_sha1 = crypto_alloc_tfm(sha1_fallback, 0); | 269 | tfm = crypto_alloc_tfm(sha1_fallback, 0); |
270 | if (!tfm_sha1) { | 270 | if (!tfm) { |
271 | printk(KERN_WARNING PFX "Couldn't load fallback module for '%s'. Tried '%s'.\n", | 271 | printk(KERN_WARNING PFX "Couldn't load fallback module for '%s'. Tried '%s'.\n", |
272 | sha1_alg.cra_name, sha1_fallback); | 272 | sha1_alg.cra_name, sha1_fallback); |
273 | } else { | 273 | } else { |
274 | printk(KERN_NOTICE PFX "Fallback for '%s' is driver '%s' (prio=%d)\n", sha1_alg.cra_name, | 274 | printk(KERN_NOTICE PFX "Fallback for '%s' is driver '%s' (prio=%d)\n", sha1_alg.cra_name, |
275 | crypto_tfm_alg_driver_name(tfm_sha1), crypto_tfm_alg_priority(tfm_sha1)); | 275 | crypto_tfm_alg_driver_name(tfm), crypto_tfm_alg_priority(tfm)); |
276 | crypto_free_tfm(tfm_sha1); | 276 | crypto_free_tfm(tfm); |
277 | } | 277 | } |
278 | 278 | ||
279 | tfm_sha256 = crypto_alloc_tfm(sha256_fallback, 0); | 279 | tfm = crypto_alloc_tfm(sha256_fallback, 0); |
280 | if (!tfm_sha256) { | 280 | if (!tfm) { |
281 | printk(KERN_WARNING PFX "Couldn't load fallback module for '%s'. Tried '%s'.\n", | 281 | printk(KERN_WARNING PFX "Couldn't load fallback module for '%s'. Tried '%s'.\n", |
282 | sha256_alg.cra_name, sha256_fallback); | 282 | sha256_alg.cra_name, sha256_fallback); |
283 | } else { | 283 | } else { |
284 | printk(KERN_NOTICE PFX "Fallback for '%s' is driver '%s' (prio=%d)\n", sha256_alg.cra_name, | 284 | printk(KERN_NOTICE PFX "Fallback for '%s' is driver '%s' (prio=%d)\n", sha256_alg.cra_name, |
285 | crypto_tfm_alg_driver_name(tfm_sha256), crypto_tfm_alg_priority(tfm_sha256)); | 285 | crypto_tfm_alg_driver_name(tfm), crypto_tfm_alg_priority(tfm)); |
286 | crypto_free_tfm(tfm_sha256); | 286 | crypto_free_tfm(tfm); |
287 | } | 287 | } |
288 | } | 288 | } |
289 | 289 | ||