diff options
author | Anshuman Khandual <[email protected]> | 2023-10-12 12:16:17 +0530 |
---|---|---|
committer | Marc Zyngier <[email protected]> | 2023-10-12 16:13:39 +0100 |
commit | 60197a4631b907b30343e25af702257d92f359cf (patch) | |
tree | 0c44d466c6ca1145f020b21fd2c553ce779a768d /lib/test_fortify/write_overflow-memset.c | |
parent | 373beef00f7d781a000b12c31fb17a5a9c25969c (diff) |
KVM: arm64: pmu: Drop redundant check for non-NULL kvm_pmu_events
There is an allocated and valid struct kvm_pmu_events for each cpu on the
system via DEFINE_PER_CPU(). Hence there cannot be a NULL pointer accessed
via this_cpu_ptr() in the helper kvm_get_pmu_events(). Hence non-NULL check
for pmu in such places are redundant and can be dropped.
Cc: Marc Zyngier <[email protected]>
Cc: Oliver Upton <[email protected]>
Cc: James Morse <[email protected]>
Cc: Suzuki K Poulose <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Signed-off-by: Anshuman Khandual <[email protected]>
Signed-off-by: Marc Zyngier <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/test_fortify/write_overflow-memset.c')
0 files changed, 0 insertions, 0 deletions