Skip to content

Commit a24074c

Browse files
Jiri Slaby (SUSE)Ingo Molnar
authored andcommitted
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) <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Cc: Liang Kan <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: https://patch.msgid.link/[email protected]
1 parent 8b69055 commit a24074c

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

arch/x86/events/intel/uncore.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1325,8 +1325,6 @@ static void uncore_pci_sub_driver_init(void)
13251325
continue;
13261326

13271327
pmu = &type->pmus[UNCORE_PCI_DEV_IDX(ids->driver_data)];
1328-
if (!pmu)
1329-
continue;
13301328

13311329
if (uncore_pci_get_dev_die_info(pci_sub_dev, &die))
13321330
continue;

0 commit comments

Comments
 (0)