]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitceecf526411ae6dfdafe62bf13ff4b3eef2f8b66
tree00bfce3e989cc5b9ec5ac2652e2924d96765f2e3
parentb4eab0c75e14861503d38e8cd8b1e87eb49d7d39
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