perf pmu: fix duplicate conditional statement

Remove duplicate check for PERF_PMU_TYPE_DRM_END in perf_pmu__kind.

Fixes: f0feb21e0a ("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>
This commit is contained in:
Anubhav Shelat 2025-11-25 11:41:18 +00:00 committed by Namhyung Kim
parent 5accdaec52
commit 87c75fa755

View File

@ -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)