linux-crypto.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] crypto: testmgr - Fix zero initialiser warnings
@ 2020-07-23  7:46 Herbert Xu
  0 siblings, 0 replies; only message in thread
From: Herbert Xu @ 2020-07-23  7:46 UTC (permalink / raw)
  To: Linux Crypto Mailing List

This patch fixes a bunch of zero initialiser warnings.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

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@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-07-23  7:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-23  7:46 [PATCH] crypto: testmgr - Fix zero initialiser warnings Herbert Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).