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 pmu: fix duplicate conditional statement

Remove duplicate check for PERF_PMU_TYPE_DRM_END in perf_pmu__kind.

Fixes: f0feb21e0a10 ("perf pmu: Add PMU kind to simplify differentiating")
Signed-off-by: Anubhav Shelat <ashelat@redhat.com>
Reviewed-by: Ian Rogers <irogers@google.com>
Closes: https://lore.kernel.org/linux-perf-users/CA+G8Dh+wLx+FvjjoEkypqvXhbzWEQVpykovzrsHi2_eQjHkzQA@mail.gmail.com/
Signed-off-by: Namhyung Kim <namhyung@kernel.org>

authored by

Anubhav Shelat and committed by
Namhyung Kim
87c75fa7 5accdaec

-2
-2
tools/perf/util/pmu.h
··· 332 332 return PERF_PMU_KIND_PE; 333 333 if (type <= PERF_PMU_TYPE_DRM_END) 334 334 return PERF_PMU_KIND_DRM; 335 - if (type <= PERF_PMU_TYPE_DRM_END) 336 - return PERF_PMU_KIND_DRM; 337 335 if (type <= PERF_PMU_TYPE_HWMON_END) 338 336 return PERF_PMU_KIND_HWMON; 339 337 if (type == PERF_PMU_TYPE_TOOL)