aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/cdx/controller/cdx_controller.c
diff options
context:
space:
mode:
authorAnshuman Khandual <[email protected]>2023-10-12 06:46:17 +0000
committerMarc Zyngier <[email protected]>2023-10-12 15:13:39 +0000
commit60197a4631b907b30343e25af702257d92f359cf (patch)
tree0c44d466c6ca1145f020b21fd2c553ce779a768d /drivers/cdx/controller/cdx_controller.c
parentKVM: arm64: nvhe: Ignore SVE hint in SMCCC function ID (diff)
downloadkernel-60197a4631b907b30343e25af702257d92f359cf.tar.gz
kernel-60197a4631b907b30343e25af702257d92f359cf.zip
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 'drivers/cdx/controller/cdx_controller.c')
0 files changed, 0 insertions, 0 deletions