linux/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
..
crypto4xx_alg.c crypto: crypto4xx - Use crypto_ahash_set_reqsize 2009-07-14 12:58:13 +08:00
crypto4xx_core.c crypto: crypto4xx - fix error return code 2012-09-27 13:32:15 +08:00
crypto4xx_core.h of/device: Replace struct of_device with struct platform_device 2010-08-06 09:25:50 -06:00
crypto4xx_reg_def.h fix typos concerning "initiali[zs]e" 2010-06-16 18:05:05 +02:00
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
Makefile crypto: Makefile - replace the use of <module>-objs with <module>-y 2010-10-19 20:52:26 +08:00