crypto: testmgr - fix !x==y confusion
authorYanjiang Jin <yanjiang.jin@windriver.com>
Fri, 29 Jul 2016 08:32:09 +0000 (16:32 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 9 Aug 2016 10:47:19 +0000 (18:47 +0800)
commit0fae0c1e1d7991ce0dbefdd1c35c14e9d0025cc2
tree00bfce3e989cc5b9ec5ac2652e2924d96765f2e3
parente14e7d126765ce0156ab5e3b250b1270998c207d
crypto: testmgr - fix !x==y confusion

"if (!ret == template[i].fail)" is confusing to compilers (gcc5):

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

Let there be 'if (template[i].fail == !ret) '.

Signed-off-by: Yanjiang Jin <yanjiang.jin@windriver.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/testmgr.c