crypto: hisilicon/qm - delete redundant null assignment operations
authorKai Ye <yekai13@huawei.com>
Sat, 12 Nov 2022 02:12:50 +0000 (02:12 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 18 Nov 2022 08:59:34 +0000 (16:59 +0800)
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>
drivers/crypto/hisilicon/qm.c

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