Commit 7bbbc9d8 authored by Kai Ye's avatar Kai Ye Committed by Herbert Xu
Browse files

crypto: hisilicon/qm - delete redundant null assignment operations



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: default avatarKai Ye <yekai13@huawei.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent e6cb02bd
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -1773,7 +1773,6 @@ static void dfx_regs_uninit(struct hisi_qm *qm,
		dregs[i].regs = NULL;
	}
	kfree(dregs);
	dregs = NULL;
}

/**