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: "Leizhen \(ThunderTown\)" X-Patchwork-Id: 434196 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp3727147jao; Tue, 11 May 2021 04:23:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzh5H2z2XUiuAaGdGDqHcrL+5v4ZtAGeBKu96kC+KK7SLoyQqhyPb2epn0t7I7Jd8P1iBr4 X-Received: by 2002:aa7:8104:0:b029:2c5:3039:b62f with SMTP id b4-20020aa781040000b02902c53039b62fmr6810500pfi.27.1620732181270; Tue, 11 May 2021 04:23:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620732181; cv=none; d=google.com; s=arc-20160816; b=HUQKT2816vXGXzqrQdeKpXNhWAyfgFLAFtEeY6q5TtfPRXI484aUHAXH8SS45KOzXn zfBSdafFpXMrC5PoO368Y/9uk+9I2pmscfmw0PxfduvA1TlcGX8sPIW7yb+ttoWwRchu qg9lRPKv5JJSbYsZbABrGwab3HQT+sq/DKOQYDWn65MsmIo+WKk9KYNbtdAg0YiYgI0N 4WeNcdmtx+xUF/hCEOoB3J7mP//nuh9303ptJi3t7Ogm++VJTPfB7leaClzslZ1hNhkE JHdBYhyQPZxN/oVFDPjrjwmQqhDkzg6ZSsD0lqI1Ts7sEpffPDwWhnV4Tl8WFlFbHF4H /lEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:to:from:delivered-to; bh=CC3I3gw8QtgwArfEEmdXmujLPx4UlW7H0dzphg3ij1M=; b=Z8CIlv+Kfatn1JgCZV62g/qrZ1DIAFVX3kji/QAsdIuzwFmJkdMGBXfkUQTi/B3MP+ 1V9WI4pyyi5zIKGlanImGv6KFDbODV4vU2+baQByb1Dx+bUZeL7x1lDqKgwO9eKe8jge T9O3JqI2LK1o9yTK3ccY1KlVeJ+BAJAzbA1l9bHhlFtCvNTDJQE4aygiKLrtgcFGk/yv qd4F9JZ00PcSsd1A45L+b5XGOHWwWiAgcbhGG7yDuOUTYFnhI5vcCSr7mW/ESdWFpMYJ W2fIeT6HBcGM1u+VEgXlfD0Wc1NsgARsW8LtapgwvDmdO+15o8zne8ZeLcG4LHhKV3al YJyQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id s1si21281843plq.105.2021.05.11.04.23.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 May 2021 04:23:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id F23FE6EA20; Tue, 11 May 2021 11:22:57 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from szxga05-in.huawei.com (szxga05-in.huawei.com [45.249.212.191]) by gabe.freedesktop.org (Postfix) with ESMTPS id 37FF16EA20 for ; Tue, 11 May 2021 11:22:56 +0000 (UTC) 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 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-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Zhen Lei Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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(-) -- 2.26.0.106.g9fadedd 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; }