mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 10:33:41 +02:00
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:
parent
5accdaec52
commit
87c75fa755
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user