diff options
author | Junhao He <hejunhao3@huawei.com> | 2023-04-03 11:14:22 +0300 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2023-04-17 15:14:10 +0300 |
commit | 25d8c25025a46e7621edde2eb6d5f55c6d29ee86 (patch) | |
tree | 57828f45f2ebe37794eb18fb37c2f1c883ee0579 /drivers/perf/hisilicon/hisi_uncore_sllc_pmu.c | |
parent | 2ad91e44e6b0c7ef1ed151b3bb2242a2144e6085 (diff) | |
download | linux-25d8c25025a46e7621edde2eb6d5f55c6d29ee86.tar.xz |
drivers/perf: hisi: Remove redundant initialized of pmu->name
"pmu->name" is initialized by perf_pmu_register() function, so remove
the redundant initialized in hisi_pmu_init().
Signed-off-by: Junhao He <hejunhao3@huawei.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Link: https://lore.kernel.org/r/20230403081423.62460-2-hejunhao3@huawei.com
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'drivers/perf/hisilicon/hisi_uncore_sllc_pmu.c')
-rw-r--r-- | drivers/perf/hisilicon/hisi_uncore_sllc_pmu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/perf/hisilicon/hisi_uncore_sllc_pmu.c b/drivers/perf/hisilicon/hisi_uncore_sllc_pmu.c index 1e354433776a..6fe534a665ed 100644 --- a/drivers/perf/hisilicon/hisi_uncore_sllc_pmu.c +++ b/drivers/perf/hisilicon/hisi_uncore_sllc_pmu.c @@ -445,7 +445,7 @@ static int hisi_sllc_pmu_probe(struct platform_device *pdev) return ret; } - hisi_pmu_init(sllc_pmu, name, THIS_MODULE); + hisi_pmu_init(sllc_pmu, THIS_MODULE); ret = perf_pmu_register(&sllc_pmu->pmu, name, -1); if (ret) { |