Julia Lawall
7b5c253c88
crypto: atmel-aes - adjust duplicate test
...
Delete successive tests to the same location. The code tested the result
of a previous allocation, that itself was already tested. It is changed to
test the result of the most recent allocation.
A simplified version of the semantic match that finds this problem is as
follows: (http://coccinelle.lip6.fr/ )
// <smpl>
@s exists@
local idexpression y;
expression x,e;
@@
*if ( \(x == NULL\|IS_ERR(x)\|y != 0\) )
{ ... when forall
return ...; }
... when != \(y = e\|y += e\|y -= e\|y |= e\|y &= e\|y++\|y--\|&y\)
when != \(XT_GETPAGE(...,y)\|WMI_CMD_BUF(...)\)
*if ( \(x == NULL\|IS_ERR(x)\|y != 0\) )
{ ... when forall
return ...; }
// </smpl>
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr >
Acked-by: David S. Miller <davem@davemloft.net >
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au >
2013-02-04 21:16:52 +08:00
Greg Kroah-Hartman
49cfe4db2d
Drivers: crypto: remove __dev* attributes.
...
CONFIG_HOTPLUG is going away as an option. As a result, the __dev*
markings need to be removed.
This change removes the use of __devinit, __devexit_p, __devinitdata,
and __devexit from these drivers.
Based on patches originally written by Bill Pemberton, but redone by me
in order to handle some of the coding style issues better, by hand.
Cc: Bill Pemberton <wfp5p@virginia.edu >
Cc: Herbert Xu <herbert@gondor.apana.org.au >
Cc: "David S. Miller" <davem@davemloft.net >
Cc: Kent Yoder <key@linux.vnet.ibm.com >
Cc: Jamie Iles <jamie@jamieiles.com >
Cc: Kim Phillips <kim.phillips@freescale.com >
Cc: Shengzhou Liu <Shengzhou.Liu@freescale.com >
Cc: Alex Porosanu <alexandru.porosanu@freescale.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2013-01-03 15:57:02 -08:00
Wei Yongjun
21a5b95f56
crypto: remove duplicated include
...
From: Wei Yongjun <yongjun_wei@trendmicro.com.cn >
Remove duplicated include.
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn >
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au >
2012-09-07 04:17:03 +08:00
Jussi Kivilinna
e15aa3692d
crypto: drivers - remove cra_list initialization
...
Initialization of cra_list is currently mixed, most ciphers initialize this
field and most shashes do not. Initialization however is not needed at all
since cra_list is initialized/overwritten in __crypto_register_alg() with
list_add(). Therefore perform cleanup to remove all unneeded initializations
of this field in 'crypto/drivers/'.
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org >
Cc: linux-geode@lists.infradead.org
Cc: Michal Ludvig <michal@logix.cz >
Cc: Dmitry Kasatkin <dmitry.kasatkin@nokia.com >
Cc: Varun Wadekar <vwadekar@nvidia.com >
Cc: Eric Bénard <eric@eukrea.com >
Signed-off-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi >
Acked-by: Kent Yoder <key@linux.vnet.ibm.com >
Acked-by: Vladimir Zapolskiy <vladimir_zapolskiy@mentor.com >
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au >
2012-08-01 17:47:28 +08:00
Nicolas Royer
bd3c7b5c2a
crypto: atmel - add Atmel AES driver
...
Signed-off-by: Nicolas Royer <nicolas@eukrea.com >
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com >
Acked-by: Eric Bénard <eric@eukrea.com >
Tested-by: Eric Bénard <eric@eukrea.com >
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au >
2012-07-11 11:07:40 +08:00