2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-11 15:14:03 +08:00

drivers/perf: Remove redundant dev_err call in tx2_uncore_pmu_init_dev()

There is a error message within devm_ioremap_resource
already, so remove the dev_err call to avoid redundant
error message.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zou Wei <zou_wei@huawei.com>
Link: https://lore.kernel.org/r/1620715364-107460-1-git-send-email-zou_wei@huawei.com
Signed-off-by: Will Deacon <will@kernel.org>
This commit is contained in:
Zou Wei 2021-05-11 14:42:44 +08:00 committed by Will Deacon
parent 77b06ddc04
commit bf2367aaed

View File

@ -817,10 +817,8 @@ static struct tx2_uncore_pmu *tx2_uncore_pmu_init_dev(struct device *dev,
} }
base = devm_ioremap_resource(dev, &res); base = devm_ioremap_resource(dev, &res);
if (IS_ERR(base)) { if (IS_ERR(base))
dev_err(dev, "PMU type %d: Fail to map resource\n", type);
return NULL; return NULL;
}
tx2_pmu = devm_kzalloc(dev, sizeof(*tx2_pmu), GFP_KERNEL); tx2_pmu = devm_kzalloc(dev, sizeof(*tx2_pmu), GFP_KERNEL);
if (!tx2_pmu) if (!tx2_pmu)