]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
crypto: ixp4xx - Do not initialize static to NULL
authorCorentin Labbe <clabbe@baylibre.com>
Wed, 5 May 2021 20:26:14 +0000 (20:26 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 14 May 2021 11:07:57 +0000 (19:07 +0800)
This patch fixes all checkpatch report about static init.

Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/ixp4xx_crypto.c

index 5b8ffa4db45d719797c6dbddcd82fc9342ed5c40..954696a3987508275cd553a9d3f9ec7901508b95 100644 (file)
@@ -221,10 +221,10 @@ static const struct ix_hash_algo hash_alg_sha1 = {
 };
 
 static struct npe *npe_c;
-static struct dma_pool *buffer_pool = NULL;
-static struct dma_pool *ctx_pool = NULL;
+static struct dma_pool *buffer_pool;
+static struct dma_pool *ctx_pool;
 
-static struct crypt_ctl *crypt_virt = NULL;
+static struct crypt_ctl *crypt_virt;
 static dma_addr_t crypt_phys;
 
 static int support_aes = 1;
@@ -275,7 +275,7 @@ static DEFINE_SPINLOCK(desc_lock);
 static struct crypt_ctl *get_crypt_desc(void)
 {
        int i;
-       static int idx = 0;
+       static int idx;
        unsigned long flags;
 
        spin_lock_irqsave(&desc_lock, flags);