* [PATCH] crypto: ccp: ccp-dev: no need to initialise statics to 0
@ 2021-11-13 6:30 Jason Wang
2021-11-20 4:33 ` Herbert Xu
0 siblings, 1 reply; 2+ messages in thread
From: Jason Wang @ 2021-11-13 6:30 UTC (permalink / raw)
To: davem
Cc: herbert, thomas.lendacky, john.allen, linux-crypto, linux-kernel,
Jason Wang
Static variables do not need to be initialized to 0.
Signed-off-by: Jason Wang <wangborong@cdjrlc.com>
---
drivers/crypto/ccp/ccp-dev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/crypto/ccp/ccp-dev.c b/drivers/crypto/ccp/ccp-dev.c
index 9ce4b68e9c48..c531d13d971f 100644
--- a/drivers/crypto/ccp/ccp-dev.c
+++ b/drivers/crypto/ccp/ccp-dev.c
@@ -31,7 +31,7 @@
#define MAX_CCPS 32
/* Limit CCP use to a specifed number of queues per device */
-static unsigned int nqueues = 0;
+static unsigned int nqueues;
module_param(nqueues, uint, 0444);
MODULE_PARM_DESC(nqueues, "Number of queues per CCP (minimum 1; default: all available)");
--
2.33.0
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] crypto: ccp: ccp-dev: no need to initialise statics to 0
2021-11-13 6:30 [PATCH] crypto: ccp: ccp-dev: no need to initialise statics to 0 Jason Wang
@ 2021-11-20 4:33 ` Herbert Xu
0 siblings, 0 replies; 2+ messages in thread
From: Herbert Xu @ 2021-11-20 4:33 UTC (permalink / raw)
To: Jason Wang; +Cc: davem, thomas.lendacky, john.allen, linux-crypto, linux-kernel
On Sat, Nov 13, 2021 at 02:30:23PM +0800, Jason Wang wrote:
> Static variables do not need to be initialized to 0.
>
> Signed-off-by: Jason Wang <wangborong@cdjrlc.com>
> ---
> drivers/crypto/ccp/ccp-dev.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Patch applied. Thanks.
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-11-20 4:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-13 6:30 [PATCH] crypto: ccp: ccp-dev: no need to initialise statics to 0 Jason Wang
2021-11-20 4:33 ` Herbert Xu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®