On Fri, Jul 29, 2016 at 04:32:09PM +0800, yanjiang....@windriver.com wrote: > From: Yanjiang Jin <yanjiang....@windriver.com> > > "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....@windriver.com>
Patch applied. Thanks. -- Email: Herbert Xu <herb...@gondor.apana.org.au> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt