mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 10:31:46 +09:00
crypto: hisilicon/qm - delete redundant null assignment operations
[ Upstream commit 7bbbc9d81b ]
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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
bafb12b629
commit
56785a3a08
@@ -1773,7 +1773,6 @@ static void dfx_regs_uninit(struct hisi_qm *qm,
|
||||
dregs[i].regs = NULL;
|
||||
}
|
||||
kfree(dregs);
|
||||
dregs = NULL;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user