Skip to content

Commit 3e1166b

Browse files
arndbherbertx
authored andcommitted
crypto: inside-secure - fix gcc-4.9 warnings
All older compiler versions up to gcc-4.9 produce these harmless warnings: drivers/crypto/inside-secure/safexcel_cipher.c:389:9: warning: missing braces around initializer [-Wmissing-braces] drivers/crypto/inside-secure/safexcel_cipher.c:389:9: warning: (near initialization for ‘result.completion’) [-Wmissing-braces] drivers/crypto/inside-secure/safexcel_hash.c:422:9: warning: missing braces around initializer [-Wmissing-braces] drivers/crypto/inside-secure/safexcel_hash.c:422:9: warning: (near initialization for ‘result.completion’) [-Wmissing-braces] This changes the syntax to something that works on all versions without warnings. Fixes: 1b44c5a ("crypto: inside-secure - add SafeXcel EIP197 crypto engine driver") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Antoine Tenart <antoine.tenart@free-electrons.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent 5613663 commit 3e1166b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/crypto/inside-secure/safexcel_cipher.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ static int safexcel_cipher_exit_inv(struct crypto_tfm *tfm)
386386
struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm);
387387
struct safexcel_crypto_priv *priv = ctx->priv;
388388
struct skcipher_request req;
389-
struct safexcel_inv_result result = { 0 };
389+
struct safexcel_inv_result result = {};
390390
int ring = ctx->base.ring;
391391

392392
memset(&req, 0, sizeof(struct skcipher_request));

drivers/crypto/inside-secure/safexcel_hash.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ static int safexcel_ahash_exit_inv(struct crypto_tfm *tfm)
419419
struct safexcel_ahash_ctx *ctx = crypto_tfm_ctx(tfm);
420420
struct safexcel_crypto_priv *priv = ctx->priv;
421421
struct ahash_request req;
422-
struct safexcel_inv_result result = { 0 };
422+
struct safexcel_inv_result result = {};
423423
int ring = ctx->base.ring;
424424

425425
memset(&req, 0, sizeof(struct ahash_request));

0 commit comments

Comments
 (0)