From patchwork Tue May 11 11:22:37 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhen Lei X-Patchwork-Id: 12250879 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 B76B8C433B4 for ; Tue, 11 May 2021 13:07:36 +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 69EF761628 for ; Tue, 11 May 2021 13:07:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 69EF761628 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=tWmojaTu3t6MqhAjrwUh0p+Tv1q98wo4qGn6KdYSB7U=; b=QFdaDCgDDhvdTsle028Fc6/MG6 xzIuoQt7H3RE2VbSb9SuswDLuhXUvW9wO3bBnbX7y4+NmcyOi05W3ORpksSzGXCPC3nRlsqaD1f+9 u7l40f6nShvNnMQqZ70MtfTQd4o4LVLdhspvo/Oj9CuhFgMePwl4T0PakXXdY9obKN+YedfQxMX3U UVf1wMU8CgbOGVSrzU8GAJvkxCy3+JyuijJshhpxzK5H+OnvSz3PoX4xTniVLRTwJDB6hPh9yGBfS a7fMWJ0JjivUDHmIFiLtMxCBg89ungMzIPYIY3wD75FZZ0XCXvmoW1u808WWX2bt3oDUZfg6th6+n GWR8aZAg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lgS5M-00HZQG-27; Tue, 11 May 2021 13:06:04 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lgQTc-00H7Aa-Tz for linux-arm-kernel@desiato.infradead.org; Tue, 11 May 2021 11:23:01 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Type: Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject:CC:To:From: Sender:Reply-To:Content-ID:Content-Description:In-Reply-To:References; bh=CC3I3gw8QtgwArfEEmdXmujLPx4UlW7H0dzphg3ij1M=; b=z6vi3AKIHAvrT+VPJANoKjawRM ZJ69eJS8SsCAHJL176X6X/303d+Wd2BPOscKbZlFylURLxs75KqyL8QWJcFNXVflW+72SU9AlhXmS UgkfTw8uEU5TlXSG4OfDPxAJo64eCvhE24u7nDn8k3OBBaZPkTFwY0GiLIfUZliK9DgEq2QbMtPzp HT1+Z28ra5yFtFXjZYeXeXDlyDTbOrzWHCF/tH66G1ZLQmtsrsntf2tIlCIn7YYN9/L6JIx8z8DH1 i9hNLWmuG4omVyi+1Z6Zt3WY8to7nLzTkJ+BAUNa2hnSvxnempkwWfPkwKxEskZmWUtiNdXa/LztY LCXt62Rw==; Received: from szxga05-in.huawei.com ([45.249.212.191]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lgQTZ-009W3y-Sw for linux-arm-kernel@lists.infradead.org; Tue, 11 May 2021 11:22:59 +0000 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4Ffb7L4YFdzkWjX; Tue, 11 May 2021 19:20:14 +0800 (CST) Received: from thunder-town.china.huawei.com (10.174.177.72) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.498.0; Tue, 11 May 2021 19:22:43 +0800 From: Zhen Lei To: Yannick Fertre , Philippe Cornu , Benjamin Gaignard , David Airlie , "Daniel Vetter" , Maxime Coquelin , Alexandre Torgue , dri-devel , linux-stm32 , linux-arm-kernel CC: Zhen Lei Subject: [PATCH 1/1] drm/stm: dsi: Remove redundant error printing in dw_mipi_dsi_stm_probe() Date: Tue, 11 May 2021 19:22:37 +0800 Message-ID: <20210511112237.5324-1-thunder.leizhen@huawei.com> X-Mailer: git-send-email 2.26.0.windows.1 MIME-Version: 1.0 X-Originating-IP: [10.174.177.72] X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210511_042258_120602_799652C4 X-CRM114-Status: UNSURE ( 9.93 ) 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 When devm_ioremap_resource() fails, a clear enough error message will be printed by its subfunction __devm_ioremap_resource(). The error information contains the device name, failure cause, and possibly resource information. Therefore, remove the error printing here to simplify code and reduce the binary size. Reported-by: Hulk Robot Signed-off-by: Zhen Lei --- drivers/gpu/drm/stm/dw_mipi_dsi-stm.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/stm/dw_mipi_dsi-stm.c b/drivers/gpu/drm/stm/dw_mipi_dsi-stm.c index 8399d337589d5e4..2c6da2625cdfdcb 100644 --- a/drivers/gpu/drm/stm/dw_mipi_dsi-stm.c +++ b/drivers/gpu/drm/stm/dw_mipi_dsi-stm.c @@ -356,7 +356,6 @@ static int dw_mipi_dsi_stm_probe(struct platform_device *pdev) dsi->base = devm_ioremap_resource(dev, res); if (IS_ERR(dsi->base)) { ret = PTR_ERR(dsi->base); - DRM_ERROR("Unable to get dsi registers %d\n", ret); return ret; }