summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Ye <yekai13@huawei.com>2022-11-12 02:12:50 +0000
committerHerbert Xu <herbert@gondor.apana.org.au>2022-11-18 16:59:34 +0800
commit7bbbc9d81be588ae4fb28b5b202e4421dbfef197 (patch)
tree600623951dcd91bad9748aa44afa817c00c13949
parente6cb02bd0a52457e486a752da5db7b67f2540c16 (diff)
crypto: hisilicon/qm - delete redundant null assignment operations
There is no security data in the pointer. It is only a value transferred as a structure. It makes no sense to zero a variable that is on the stack. So not need to set the pointer to null. Signed-off-by: Kai Ye <yekai13@huawei.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
-rw-r--r--drivers/crypto/hisilicon/qm.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/crypto/hisilicon/qm.c b/drivers/crypto/hisilicon/qm.c
index 363a02810a16..849dc80a7118 100644
--- a/drivers/crypto/hisilicon/qm.c
+++ b/drivers/crypto/hisilicon/qm.c
@@ -1773,7 +1773,6 @@ static void dfx_regs_uninit(struct hisi_qm *qm,
dregs[i].regs = NULL;
}
kfree(dregs);
- dregs = NULL;
}
/**