diff options
| author | Arnd Bergmann <arnd@arndb.de> | 2017-09-12 13:12:16 +0300 | 
|---|---|---|
| committer | Herbert Xu <herbert@gondor.apana.org.au> | 2017-09-20 12:42:41 +0300 | 
| commit | 3e1166b94e661ed51af1fe1fe5f74bd83450b50f (patch) | |
| tree | 44c06ab47d287b9e3ba52fc73bd2cf0901299026 /drivers/crypto/inside-secure/safexcel_cipher.c | |
| parent | 56136631573baa537a15e0012055ffe8cfec1a33 (diff) | |
| download | linux-3e1166b94e661ed51af1fe1fe5f74bd83450b50f.tar.xz | |
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: 1b44c5a60c13 ("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>
Diffstat (limited to 'drivers/crypto/inside-secure/safexcel_cipher.c')
| -rw-r--r-- | drivers/crypto/inside-secure/safexcel_cipher.c | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/drivers/crypto/inside-secure/safexcel_cipher.c b/drivers/crypto/inside-secure/safexcel_cipher.c index d2207ac5ba19..5438552bc6d7 100644 --- a/drivers/crypto/inside-secure/safexcel_cipher.c +++ b/drivers/crypto/inside-secure/safexcel_cipher.c @@ -386,7 +386,7 @@ static int safexcel_cipher_exit_inv(struct crypto_tfm *tfm)  	struct safexcel_cipher_ctx *ctx = crypto_tfm_ctx(tfm);  	struct safexcel_crypto_priv *priv = ctx->priv;  	struct skcipher_request req; -	struct safexcel_inv_result result = { 0 }; +	struct safexcel_inv_result result = {};  	int ring = ctx->base.ring;  	memset(&req, 0, sizeof(struct skcipher_request)); | 
