const struct gator_cpu *gator_cpu;
list_for_each_entry(gator_cpu, &gator_cpus, list) {
- if (gator_cpu->pmnc_name != NULL &&
- /* Do the names match exactly? */
+ if ( /* Do the names match exactly? */
(strcasecmp(gator_cpu->pmnc_name, name) == 0 ||
/* Do these names match but have the old vs new prefix? */
((strncasecmp(name, OLD_PMU_PREFIX, sizeof(OLD_PMU_PREFIX) - 1) == 0 &&
const struct uncore_pmu *uncore_pmu;
list_for_each_entry(uncore_pmu, &uncore_pmus, list) {
- if (uncore_pmu->pmnc_name != NULL && strcasecmp(uncore_pmu->pmnc_name, name) == 0)
+ if (strcasecmp(uncore_pmu->pmnc_name, name) == 0)
return uncore_pmu;
}