Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3247542pxj; Mon, 10 May 2021 23:26:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxNK7wOed9aV5fFdrVXBldLdoXsdMTWDaRP73jUYuh2yQUAV0A+aSdpzs5fMQIpQSO9HZbm X-Received: by 2002:a05:6e02:13e2:: with SMTP id w2mr25455054ilj.53.1620714416344; Mon, 10 May 2021 23:26:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620714416; cv=none; d=google.com; s=arc-20160816; b=wMUPkhnKX2wWgyuyFDehg7xOKyU1m70CnlWPyjOUB6dgCwmz2qHasyE8e0svm/qOLi BnU21yt9y8rsBLijMuSpVvolWJmjSWnoOO8BlGQgwb7MXZYwmnB8A0JswbPrzMCYi4Ne fmWmlQ5Yuv6faUibHlQKy6i3axsi/giJ6wj4TvlhBVqmmqRwoshwug7mbew157+m92Lc 4KkqwY1ymS74anynLAKQ/5Ap1jn/BJncGIEA4dMV7AvSl1CC05wCtJtIgIOpcgbLwFgy C7C9SvEDzLGmBWMohTkmg5EaoXauW45yymlemOAmD747ogAM1LQQr8kYNMdr/SoCuBty IGOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=JXYqSFp01BCK0zPpbexfPGgt1lAe2REi+GzzbOZYqWQ=; b=QWYuz2nLJ56R2ROKTVd/v29pvSpHHLYYhfAWe8kptvAqX3rDpU4Lrpy+Juv+20urBT /1JEkX6pplhIGQ0ri+i6iM3m2Kc29wPfxuuhrIKhxdGe2jpyqYjhYFltLORBZw2Y+uLF Gxk5lkN0YeLyBXhtVwWFDoAz8Uys55Q9cwgJDoD2V9Edqd9uOrR1Vq16rurQXZiLK42j 4G/VakBCgLILPKZVnvJsSBvEEnvarOEO/CSue8pBIbsXnkm2lGUgYykdpkGPH4IbC5Xr laLVxKIWKWsEEi7VEknwIojVE4PoYR7gwk7xHlhzk1S1DcP18ZPezHOagn7Ss0KRkZYE nRuQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k6si15888987jaq.122.2021.05.10.23.26.44; Mon, 10 May 2021 23:26:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230172AbhEKG06 (ORCPT + 99 others); Tue, 11 May 2021 02:26:58 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:2771 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229957AbhEKG04 (ORCPT ); Tue, 11 May 2021 02:26:56 -0400 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4FfSWm1VqGzmg6w; Tue, 11 May 2021 14:22:28 +0800 (CST) Received: from linux-lmwb.huawei.com (10.175.103.112) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.498.0; Tue, 11 May 2021 14:25:42 +0800 From: Zou Wei To: , CC: , , Zou Wei Subject: [PATCH -next] drivers/perf: Remove redundant dev_err call in tx2_uncore_pmu_init_dev() Date: Tue, 11 May 2021 14:42:44 +0800 Message-ID: <1620715364-107460-1-git-send-email-zou_wei@huawei.com> X-Mailer: git-send-email 2.6.2 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.103.112] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Signed-off-by: Zou Wei --- drivers/perf/thunderx2_pmu.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/perf/thunderx2_pmu.c b/drivers/perf/thunderx2_pmu.c index 06a6d56..9e8f55a 100644 --- a/drivers/perf/thunderx2_pmu.c +++ b/drivers/perf/thunderx2_pmu.c @@ -818,7 +818,6 @@ static struct tx2_uncore_pmu *tx2_uncore_pmu_init_dev(struct device *dev, base = devm_ioremap_resource(dev, &res); if (IS_ERR(base)) { - dev_err(dev, "PMU type %d: Fail to map resource\n", type); return NULL; } -- 2.6.2