s390/pai: cleanup event initialization
authorThomas Richter <tmricht@linux.ibm.com>
Mon, 30 Oct 2023 10:41:33 +0000 (11:41 +0100)
committerAlexander Gordeev <agordeev@linux.ibm.com>
Wed, 22 Nov 2023 12:54:57 +0000 (13:54 +0100)
commit4711b7b8f99583f6105a33e91f106125134beacb
tree3bcecbf161869eef1392b3614086579044df0d07
parent98b1cc82c4affc16f5598d4fa14b1858671b2263
s390/pai: cleanup event initialization

Setting event::hw.last_tag to zero is not necessary. The memory
for each event is dynamically allocated by the kernel common code and
initialized to zero already.  Remove this unnecessary assignment.
Move the comment to function paicrypt_start() for clarification.

Suggested-by: Sumanth Korikkar <sumanthk@linux.ibm.com>
Acked-by: Sumanth Korikkar <sumanthk@linux.ibm.com>
Signed-off-by: Thomas Richter <tmricht@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
arch/s390/kernel/perf_pai_crypto.c
arch/s390/kernel/perf_pai_ext.c