crypto: hisilicon/qm - delete redundant null assignment operations
authorKai Ye <yekai13@huawei.com>
Sat, 12 Nov 2022 02:12:50 +0000 (02:12 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Nov 2023 10:52:05 +0000 (11:52 +0100)
[ Upstream commit 7bbbc9d81be588ae4fb28b5b202e4421dbfef197 ]

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>
Stable-dep-of: 5831fc1fd4a5 ("crypto: hisilicon/qm - fix PF queue parameter issue")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/crypto/hisilicon/qm.c

index 07e1e39a5e378a160a55729357f81a342237c4ac..a878a232ef5b58758034ba0add68eb5ac40f6d82 100644 (file)
@@ -1773,7 +1773,6 @@ static void dfx_regs_uninit(struct hisi_qm *qm,
                dregs[i].regs = NULL;
        }
        kfree(dregs);
-       dregs = NULL;
 }
 
 /**