[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20221105095357.21199-5-yekai13@huawei.com>
Date: Sat, 5 Nov 2022 09:53:57 +0000
From: Kai Ye <yekai13@...wei.com>
To: <herbert@...dor.apana.org.au>
CC: <linux-crypto@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<wangzhou1@...ilicon.com>, <yekai13@...wei.com>
Subject: [PATCH v2 4/4] crypto: hisilicon/debugfs - delete redundant null assignment operations
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@...wei.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
Powered by blists - more mailing lists