From patchwork Tue May 11 10:00:01 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Leizhen \(ThunderTown\)" X-Patchwork-Id: 434190 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp3666506jao; Tue, 11 May 2021 03:00:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxvIdFUK5AYUjItR0fT/853iwyqcM5vxqc7lr8RuIogaDlz58mI9bPHounOnz0uBlzipJxj X-Received: by 2002:a62:5f07:0:b029:2b3:8e8d:55b8 with SMTP id t7-20020a625f070000b02902b38e8d55b8mr16188732pfb.51.1620727224153; Tue, 11 May 2021 03:00:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620727224; cv=none; d=google.com; s=arc-20160816; b=ssjUAz/RmPDdDZPrsYE89VJd8RYcYZ3Y/5D8EzCX21O4Bet2TETSGY1n9Amwvjf5Yf MHvXg4ApeLYgX74bxwwPGCZJr4krI6/dGCtJMwIJmMR/oagqsV+M/dogaXxy30YyJW2q WBaW3cPY786s4+0a/z02RGhkHLT1WQM4ISG1ig7WH6Km474annhiCF6Lp+EjZqVuolvR fITcgXMC90M8rGhqkbxM0wlM7W88Cy0OBLkf9s+RSa983RLmscu1rZ4Rhx6viH1ohYkk 2Y26tCU+k4+k1eCWcrypDu3ty76wRM+367GGPtxxz3cIAMtEuXgJBLYJehtGXxMhgSoZ PSjQ== 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=sfI6btkjV3+aPJL3iwJpp0x72HxkYXU9Ly0DbNoOu2k=; b=cKhO4zfPaoU3sDL0jJ7jthF+oLAMvLLjcnmKzVkrgR7SWzMV64keK+C1d0PS17XH36 tlMAjL6ovjn/8Y0+/jvsWE0Vx12R/1zAbGqu3albcABPCdXM6yF+27EWsGVg65hOF7pM syg9Tp5bRFJBK9Hp98pvd8XZmloexYus7d533GGfJh3koH9C+TJmV/P9oZDyRUTcTHR7 MzumtLYKgoYZgjC/IXZ68w6MzauPSXCyYfiYVYRCbgO2zF1XnikOw4iRR4AokZ+H/eP8 7r8IhWUYb9Y06xZ4RuuPGrv5sGovQAwqUOeq+h2764tX3AFGns0FJQpGwNs/ExIXFJlX qz0A== 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 2610:10:20:722:a800:ff:fe36:1795 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. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id 59si15741640pld.20.2021.05.11.03.00.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 May 2021 03:00:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 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 7CA2B8855B; Tue, 11 May 2021 10:00:22 +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 0FAC08855B for ; Tue, 11 May 2021 10:00:20 +0000 (UTC) Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4FfYHD5Fq4zPwtw; Tue, 11 May 2021 17:56:56 +0800 (CST) Received: from thunder-town.china.huawei.com (10.174.177.72) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.498.0; Tue, 11 May 2021 18:00:08 +0800 From: Zhen Lei To: Chun-Kuang Hu , Philipp Zabel , David Airlie , Daniel Vetter , Matthias Brugger , dri-devel , linux-mediatek , linux-arm-kernel Subject: [PATCH 1/1] drm/mediatek: Remove redundant error printing in mtk_dsi_probe() Date: Tue, 11 May 2021 18:00:01 +0800 Message-ID: <20210511100001.5047-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/mediatek/mtk_dsi.c | 1 - 1 file changed, 1 deletion(-) -- 2.26.0.106.g9fadedd diff --git a/drivers/gpu/drm/mediatek/mtk_dsi.c b/drivers/gpu/drm/mediatek/mtk_dsi.c index ae403c67cbd922d..89e351dfab88177 100644 --- a/drivers/gpu/drm/mediatek/mtk_dsi.c +++ b/drivers/gpu/drm/mediatek/mtk_dsi.c @@ -1062,7 +1062,6 @@ static int mtk_dsi_probe(struct platform_device *pdev) dsi->regs = devm_ioremap_resource(dev, regs); if (IS_ERR(dsi->regs)) { ret = PTR_ERR(dsi->regs); - dev_err(dev, "Failed to ioremap memory: %d\n", ret); goto err_unregister_host; }