• Arnd Bergmann's avatar
    crypto: inside-secure - fix gcc-4.9 warnings · 3e1166b9
    Arnd Bergmann authored
    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: 1b44c5a6 ("crypto: inside-secure - add SafeXcel EIP197 crypto engine driver")
    Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
    Acked-by: default avatarAntoine Tenart <antoine.tenart@free-electrons.com>
    Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
    3e1166b9
safexcel_cipher.c 14.4 KB