Skip to content

Commit

Permalink
crypto: ixp4xx - Do not initialize static to NULL
Browse files Browse the repository at this point in the history
This patch fixes all checkpatch report about static init.

Signed-off-by: Corentin Labbe <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
  • Loading branch information
montjoie authored and herbertx committed May 14, 2021
1 parent 39e39cf commit 87d11a5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/crypto/ixp4xx_crypto.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 87d11a5

Please sign in to comment.