From patchwork Tue May 11 11:49:36 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhen Lei X-Patchwork-Id: 434200 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp3760155jao; Tue, 11 May 2021 05:06:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyuMcESgXT+WotCvsKFZZ8iP41Lu4bE4kuk5oOtoixjBwYice7c58MOWmRjL2dqgm3kVlne X-Received: by 2002:a17:90a:c7d4:: with SMTP id gf20mr33640132pjb.106.1620734785053; Tue, 11 May 2021 05:06:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620734785; cv=none; d=google.com; s=arc-20160816; b=OPU9KcnOS6ekCqCgFTdv8tLqbXjFQkOGx0c1bLhT1DFU257y1Bi/JgN/q7pwa8VdvB MFR7zjEy/B90Y67HTr7tZbF9awpQQZjJx7Hy0am1/eAKZqTG4JwAba+fVQ17nz97M8tH gkcK8VKP+UaeObnvurIqUN04FnVvjWLyq+BlPI5fV4T0Ya8MoMJjRXreJTpBBI3Lr/HN e6VKfyGdO/KoDLJmaZ6Dq7Ia+E1hVyiOCcoK9A6g6sqZbB163tu6f8Zhc+tPKThgk3DS HMacJfK6ro9k14DkJa6VKZIV2mmeXQEVkuNbd0q5OW6Cg280/95YBRSSGbmrAowkatUg 2nUw== 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=mSXnRVfWAumsjPlX5BuAJ/pWhNr1bWGiItzejwnljBA=; b=KkXkDgcElmEMjYfI3GVdqicMwo5dYdgTZND1b2ka9H9Nh5DhiyDmw1DGYZxKFYK3KX yf9lm61WJR0UA+nscJGetETVmsq4uPr+0rY/xUVpX3Mlbr8ZLFe6s6kryish5Im1NLza AWR/umOKk65PLkve/1U+uO2Wk6FvFIvXJYW+As3KrnHRJLrWnW41sXIploMxn4phK5mG VppIo2HDSN9SY+A6MFDyyR5JZKLWevK+tPXJavNf1iPFg3oIovOgKULXtgveecUPKF4a eXQueekGrzX2HM8BsnTTR29DU9FmnMGB9ZaZKrDQufnQ5Xk3TzmE4V7AzW/rQzIiW9NN fbLQ== 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 w10si21790761pgs.110.2021.05.11.05.06.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 May 2021 05:06:25 -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 9DE766EA21; Tue, 11 May 2021 12:06:21 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org X-Greylist: delayed 994 seconds by postgrey-1.36 at gabe; Tue, 11 May 2021 12:06:20 UTC Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9C73F6EA21 for ; Tue, 11 May 2021 12:06:20 +0000 (UTC) Received: from dggeml763-chm.china.huawei.com (unknown [172.30.72.54]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4FfbkG40Jhz61T1; Tue, 11 May 2021 19:47:02 +0800 (CST) Received: from dggpemm500006.china.huawei.com (7.185.36.236) by dggeml763-chm.china.huawei.com (10.1.199.173) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Tue, 11 May 2021 19:49:41 +0800 Received: from thunder-town.china.huawei.com (10.174.177.72) by dggpemm500006.china.huawei.com (7.185.36.236) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Tue, 11 May 2021 19:49:41 +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: mtk_dpi: Remove redundant error printing in mtk_dpi_probe() Date: Tue, 11 May 2021 19:49:36 +0800 Message-ID: <20210511114936.5666-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-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To dggpemm500006.china.huawei.com (7.185.36.236) 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_dpi.c | 1 - 1 file changed, 1 deletion(-) -- 2.26.0.106.g9fadedd diff --git a/drivers/gpu/drm/mediatek/mtk_dpi.c b/drivers/gpu/drm/mediatek/mtk_dpi.c index bea91c81626e154..891a109ffe441d8 100644 --- a/drivers/gpu/drm/mediatek/mtk_dpi.c +++ b/drivers/gpu/drm/mediatek/mtk_dpi.c @@ -743,7 +743,6 @@ static int mtk_dpi_probe(struct platform_device *pdev) dpi->regs = devm_ioremap_resource(dev, mem); if (IS_ERR(dpi->regs)) { ret = PTR_ERR(dpi->regs); - dev_err(dev, "Failed to ioremap mem resource: %d\n", ret); return ret; }