crypto: ghash-intel - Fix set but not used in ghash_async_setkey()
authorGustavo F. Padovan <padovan@profusion.mobi>
Thu, 26 May 2011 03:29:33 +0000 (13:29 +1000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 29 Jun 2011 23:43:42 +0000 (07:43 +0800)
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/x86/crypto/ghash-clmulni-intel_glue.c

index 7a6e68e4f748fc2db4af59f42d4c1caad9460060..976aa64d9a2004e43d639771b956129d3ae97b92 100644 (file)
@@ -245,7 +245,7 @@ static int ghash_async_setkey(struct crypto_ahash *tfm, const u8 *key,
        crypto_ahash_set_flags(tfm, crypto_ahash_get_flags(child)
                               & CRYPTO_TFM_RES_MASK);
 
-       return 0;
+       return err;
 }
 
 static int ghash_async_init_tfm(struct crypto_tfm *tfm)