There is no security data in the pointer. It is only a value transferred
as a structure. So not need to set the pointer to null.
Signed-off-by: Kai Ye <yekai13@huawei.com>
---
drivers/crypto/hisilicon/debugfs.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/crypto/hisilicon/debugfs.c b/drivers/crypto/hisilicon/debugfs.c
index 9f1bfabd7ae2..bcd5cdaea736 100644
--- a/drivers/crypto/hisilicon/debugfs.c
+++ b/drivers/crypto/hisilicon/debugfs.c
@@ -822,7 +822,6 @@ static void dfx_regs_uninit(struct hisi_qm *qm,
dregs[i].regs = NULL;
}
kfree(dregs);
- dregs = NULL;
}
static struct dfx_diff_registers *dfx_regs_init(struct hisi_qm *qm,
--
2.17.1