Re: [PATCH -next] crypto: ccp - Use DEFINE_SPINLOCK() for spinlock

2021-04-09 Thread Herbert Xu
On Wed, Mar 31, 2021 at 10:00:55AM +0800, Tang Yizhou wrote: > spinlock can be initialized automatically with DEFINE_SPINLOCK() > rather than explicitly calling spin_lock_init(). > > Reported-by: Hulk Robot > Signed-off-by: Tang Yizhou > --- > drivers/crypto/ccp/ccp-crypto-main.c | 3 +-- > 1 f

[PATCH -next] crypto: ccp - Use DEFINE_SPINLOCK() for spinlock

2021-03-30 Thread Tang Yizhou
spinlock can be initialized automatically with DEFINE_SPINLOCK() rather than explicitly calling spin_lock_init(). Reported-by: Hulk Robot Signed-off-by: Tang Yizhou --- drivers/crypto/ccp/ccp-crypto-main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/crypto/ccp/