crypto: testmgr - Wrap the LHS in expressions of the form !x == y
authorDavid Howells <dhowells@redhat.com>
Tue, 28 Apr 2015 14:36:36 +0000 (15:36 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 1 May 2015 03:16:37 +0000 (11:16 +0800)
commit09e217844a2e2d02a950bc9c129f6fe423e426e0
tree22790e821509187160c887b82e47f65ba2f75e13
parentf94a359763c19e1d03dac61352b1041692c6a698
crypto: testmgr - Wrap the LHS in expressions of the form !x == y

In the test manager, there are a number of if-statements with expressions of
the form !x == y that incur warnings with gcc-5 of the following form:

../crypto/testmgr.c: In function '__test_aead':
../crypto/testmgr.c:523:12: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses]
   if (!ret == template[i].fail) {
            ^

By converting the 'fail' member of struct aead_testvec and struct
cipher_testvec to a bool, we can get rid of the warnings.

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/testmgr.h