diff options
| author | Anubhav Shelat <ashelat@redhat.com> | 2025-11-25 11:41:18 +0000 |
|---|---|---|
| committer | Namhyung Kim <namhyung@kernel.org> | 2025-11-26 09:57:13 -0800 |
| commit | 87c75fa75559f5501b5a03caf442f18899e388be (patch) | |
| tree | 8d5f266b54d86538f676798976ce0a76596ba470 /tools/perf/util | |
| parent | 5accdaec526ed8708ec64cf027a5e75aa83eb504 (diff) | |
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>
Diffstat (limited to 'tools/perf/util')
| -rw-r--r-- | tools/perf/util/pmu.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/tools/perf/util/pmu.h b/tools/perf/util/pmu.h index 5738e88fbb54..8f11bfe8ed6d 100644 --- a/tools/perf/util/pmu.h +++ b/tools/perf/util/pmu.h @@ -332,8 +332,6 @@ static inline enum pmu_kind perf_pmu__kind(const struct perf_pmu *pmu) return PERF_PMU_KIND_PE; if (type <= PERF_PMU_TYPE_DRM_END) return PERF_PMU_KIND_DRM; - if (type <= PERF_PMU_TYPE_DRM_END) - return PERF_PMU_KIND_DRM; if (type <= PERF_PMU_TYPE_HWMON_END) return PERF_PMU_KIND_HWMON; if (type == PERF_PMU_TYPE_TOOL) |
