Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

authored by

Jiri Slaby (SUSE) and committed by
Ingo Molnar
a24074ca 8b690556

-2
-2
arch/x86/events/intel/uncore.c
··· 1325 1325 continue; 1326 1326 1327 1327 pmu = &type->pmus[UNCORE_PCI_DEV_IDX(ids->driver_data)]; 1328 - if (!pmu) 1329 - continue; 1330 1328 1331 1329 if (uncore_pci_get_dev_die_info(pci_sub_dev, &die)) 1332 1330 continue;