[PATCH] crypto: testmgr - Fix zero initialiser warnings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This patch fixes a bunch of zero initialiser warnings.

Signed-off-by: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>

diff --git a/crypto/testmgr.c b/crypto/testmgr.c
index 6863f911fcee..487ba5f369e4 100644
--- a/crypto/testmgr.c
+++ b/crypto/testmgr.c
@@ -1649,7 +1649,7 @@ static int test_hash_vs_generic_impl(const char *driver,
 	struct crypto_shash *generic_tfm = NULL;
 	struct shash_desc *generic_desc = NULL;
 	unsigned int i;
-	struct hash_testvec vec = { 0 };
+	struct hash_testvec vec = {};
 	char vec_name[64];
 	struct testvec_config *cfg;
 	char cfgname[TESTVEC_CONFIG_NAMELEN];
@@ -2975,7 +2975,7 @@ static int test_skcipher_vs_generic_impl(const char *driver,
 	struct crypto_skcipher *generic_tfm = NULL;
 	struct skcipher_request *generic_req = NULL;
 	unsigned int i;
-	struct cipher_testvec vec = { 0 };
+	struct cipher_testvec vec = {};
 	char vec_name[64];
 	struct testvec_config *cfg;
 	char cfgname[TESTVEC_CONFIG_NAMELEN];
-- 
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt



[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]

  Powered by Linux