diff mbox series

[v2,4/4] crypto: hisilicon/debugfs - delete redundant null assignment operations

Message ID 20221105095357.21199-5-yekai13@huawei.com
State New
Headers show
Series crypto: hisilicon/qm - reconstruct and optimize the debugfs code | expand

Commit Message

yekai (A) Nov. 5, 2022, 9:53 a.m. UTC
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 mbox series

Patch

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,