Re: [PATCH -next] crypto: ixp4xx -: use DEFINE_SPINLOCK() for spinlock

From: Herbert Xu
Date: Fri Apr 16 2021 - 07:29:49 EST


On Tue, Apr 06, 2021 at 08:02:57PM +0800, Huang Guobin wrote:
> From: Guobin Huang <huangguobin4@xxxxxxxxxx>
>
> spinlock can be initialized automatically with DEFINE_SPINLOCK()
> rather than explicitly calling spin_lock_init().
>
> Reported-by: Hulk Robot <hulkci@xxxxxxxxxx>
> Signed-off-by: Guobin Huang <huangguobin4@xxxxxxxxxx>
> ---
> drivers/crypto/ixp4xx_crypto.c | 7 ++-----
> 1 file changed, 2 insertions(+), 5 deletions(-)

Patch applied. Thanks.
--
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt