From: Kai Ye Date: Sat, 12 Nov 2022 02:12:50 +0000 (+0000) Subject: crypto: hisilicon/qm - delete redundant null assignment operations X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=7bbbc9d81be588ae4fb28b5b202e4421dbfef197;p=linux.git 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 Signed-off-by: Herbert Xu --- diff --git a/drivers/crypto/hisilicon/qm.c b/drivers/crypto/hisilicon/qm.c index 363a02810a164..849dc80a71185 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; } /**