]> git.ipfire.org Git - thirdparty/linux.git/commit
perf/x86/intel/uncore: Remove superfluous check
authorJiri Slaby (SUSE) <jirislaby@kernel.org>
Wed, 19 Nov 2025 09:15:38 +0000 (10:15 +0100)
committerIngo Molnar <mingo@kernel.org>
Wed, 19 Nov 2025 09:26:31 +0000 (10:26 +0100)
commita24074ca8840cf28fa50c40e957fdc50f29971b3
tree6c883942b5d9efd5d5117a81618f1488fa392d02
parent8b690556d8fe074b4f9835075050fba3fb180e93
perf/x86/intel/uncore: Remove superfluous check

The 'pmu' pointer cannot be NULL, as it is taken as a pointer to an array.
Remove the superfluous NULL check.

Found by Coverity: CID#1497507.

Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Liang Kan <kan.liang@linux.intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://patch.msgid.link/20251119091538.825307-1-jirislaby@kernel.org
arch/x86/events/intel/uncore.c