From patchwork Tue May 11 06:42:44 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zou Wei X-Patchwork-Id: 12250753 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 10924C433ED for ; Tue, 11 May 2021 11:40:59 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B1DF361028 for ; Tue, 11 May 2021 11:40:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B1DF361028 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=huawei.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=F6aBBOTx7NK7J9YK51KH4b3CSAoNVBCcPZMtbPlxlBQ=; b=KQKrbnQEHJVgkSX09bbpmFNb4Q s//qIwTqtdVssaGOSNLHv6xXgzceThevpmbaJ7lPNPnEA8cKZahWAuYgyWyh2Apkjm0ftMHiXJewF oIyD54+pUdnhweBRtC6dD2WS2WpOXgYHdksy6TD2eOzau09KmnrSDDj+ctA0W2js5eYsOUhAv8hS4 TMexh9NKdoUGg4dpgFWcTKq951UnOcXiPHvkGkpLrJALXqNTY/FmdpLwzLY5aYyTPnJS35vvF3Ssl B0psOjN4Y/YL9KSXEwS8PgAOjZZA00wsUU65+nKki1Nmq4wFYOqR5eVlz0mNc6rp7yjpR6qGNvpVa iA0egjbg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lgQjk-00HAWf-5E; Tue, 11 May 2021 11:39:42 +0000 Received: from [2607:7c80:54:e::133] (helo=bombadil.infradead.org) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lgLqD-00GPVh-FV for linux-arm-kernel@desiato.infradead.org; Tue, 11 May 2021 06:26:03 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Type:MIME-Version:Message-ID: Date:Subject:CC:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:In-Reply-To:References; bh=JXYqSFp01BCK0zPpbexfPGgt1lAe2REi+GzzbOZYqWQ=; b=MF2NDJoWO/NW4Pg30UbtjxDq5f 6mzNdpXIcqRQ73+HXRRyj6jqpsuwyXvp7d/Gi3LSx2Cl1qNMDSTmQ7Bl53SbilMI9L3FKIA7Prgf3 8XPy2mlCsLXlqIWkZtVlUEOrlitL6/Fe9hZq5pDngwOWHly2PMW8qu1BltxgitRPeApmNTa8lMkeq 3flBE4T0uwU1cR6qUg581JBS1rngfU8lVaoM88YOwqhZI73tXxfoT9+XTRIz8+0OfQwwBn+Cj3Wuu 3fI4BZtYW8U8cQg5Aq4EMUyW3IserbYgpxqUWvV4xzF9A8QMNmjWYrJcjjTTt9ZwTrHEi+bnqg/FZ FoNtXVUA==; Received: from szxga04-in.huawei.com ([45.249.212.190]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lgLq8-009Kpg-D9 for linux-arm-kernel@lists.infradead.org; Tue, 11 May 2021 06:25:58 +0000 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 X-Originating-IP: [10.175.103.112] X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210510_232556_936660_E2F14861 X-CRM114-Status: UNSURE ( 7.97 ) X-CRM114-Notice: Please train this message. X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210510_232556_936660_E2F14861 X-CRM114-Status: UNSURE ( 4.66 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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; }