WSL2-Linux-Kernel/drivers/crypto/amcc
Peter Senna Tschudin b48ae1df54 crypto: crypto4xx - fix error return code
Convert a nonnegative error return code to a negative one, as returned
elsewhere in the function.

A simplified version of the semantic match that finds this problem is as
follows: (http://coccinelle.lip6.fr/)

// <smpl>
(
if@p1 (\(ret < 0\|ret != 0\))
 { ... return ret; }
|
ret@p1 = 0
)
... when != ret = e1
    when != &ret
*if(...)
{
  ... when != ret = e2
      when forall
 return ret;
}
// </smpl>

Signed-off-by: Peter Senna Tschudin <peter.senna@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2012-09-27 13:32:15 +08:00
..
Makefile crypto: Makefile - replace the use of <module>-objs with <module>-y 2010-10-19 20:52:26 +08:00
crypto4xx_alg.c
crypto4xx_core.c crypto: crypto4xx - fix error return code 2012-09-27 13:32:15 +08:00
crypto4xx_core.h
crypto4xx_reg_def.h
crypto4xx_sa.c Fix common misspellings 2011-03-31 11:26:23 -03:00
crypto4xx_sa.h Fix common misspellings 2011-03-31 11:26:23 -03:00