From patchwork Tue May 11 11:32:00 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Leizhen \(ThunderTown\)" X-Patchwork-Id: 434198 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp3734303jao; Tue, 11 May 2021 04:32:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzf4B3mkD1nQ+XjbhzivIdKLGixzW4B9d2NwMdfVRhJdN8kuFu7Lk6jq2Ig1fig6UBGavCu X-Received: by 2002:a63:190b:: with SMTP id z11mr29836948pgl.314.1620732742996; Tue, 11 May 2021 04:32:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620732742; cv=none; d=google.com; s=arc-20160816; b=GjrII5KILzz/d8wYYVOs5dZkLg3Df8AWcb0uvurCraPVV0PSEhMD+RFMELvJDSnYoG DhCdBCi0CFrGBL7tv0rnTYy3I4F9YJ6FNoJr6+2dRpoJuh+T00MNVfaKARHXYu6OMgyN +Bc0zQ7tE7UIVUdlKjZTx7Uz+Efixuxzo3oDuaE35n7WM5eODDcFApUfyyuI6VM55sn7 mZehZGP7YPoyvIrfAp6DaX47Ym/FRsSBwNABT8S4JQb8SEWrITBEqOpZa0FNIjWnzkrT 5eeUZRCtl0dKLHD5h3MiPkOgRasEJz9oIyA54KMV3cWtMEcQK4Goxi2ITnvtSBa4P8bV uB3A== 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=QECWY5awbDEe/b9jw0aJIsQYY/b/0ULgzBKzJFrrAxc=; b=atBRG0fCLPXHfME1sGGDjMjGSwXe8GQ523K5bQQnBHpD1R9ktlsdAIpGC1TG1RxDVa fhCeT3fgsS0IHvIM8Dt/g/Oxv67k0OnmAEkLUcO07TNBu+tafNHycg262M4sK7xOvG7w lcl7/YXJNzSYtQuowmAMe2pRE5ztK07lc3KFEJRSWu7IEngDzRa6z/gXPuRhKqYvU8pg Iwz54VgFrqlCdB1MgbBFRTkdtIAmkH5MU/lictic2FVrEEFqn5WXKtuKqNsYcDMLeHwm nJ+2s9w12QawFzWBRqUt+EsfhIyBHifBOZSK+fu9Kpfx1HJLE3NstvaGnpPbiRLeNhyg XvSg== 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 p2si11619771pgr.205.2021.05.11.04.32.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 May 2021 04:32:22 -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 C4DC46EA1F; Tue, 11 May 2021 11:32:19 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from szxga04-in.huawei.com (szxga04-in.huawei.com [45.249.212.190]) by gabe.freedesktop.org (Postfix) with ESMTPS id 7F9826EA1F for ; Tue, 11 May 2021 11:32:18 +0000 (UTC) Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4FfbL72Z5vz1BHtL; Tue, 11 May 2021 19:29:35 +0800 (CST) Received: from thunder-town.china.huawei.com (10.174.177.72) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.498.0; Tue, 11 May 2021 19:32:04 +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_cec_probe() Date: Tue, 11 May 2021 19:32:00 +0800 Message-ID: <20210511113200.5439-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_cec.c | 1 - 1 file changed, 1 deletion(-) -- 2.26.0.106.g9fadedd diff --git a/drivers/gpu/drm/mediatek/mtk_cec.c b/drivers/gpu/drm/mediatek/mtk_cec.c index e9cef5c0c8f7eff..fd593ff99bfd447 100644 --- a/drivers/gpu/drm/mediatek/mtk_cec.c +++ b/drivers/gpu/drm/mediatek/mtk_cec.c @@ -197,7 +197,6 @@ static int mtk_cec_probe(struct platform_device *pdev) cec->regs = devm_ioremap_resource(dev, res); if (IS_ERR(cec->regs)) { ret = PTR_ERR(cec->regs); - dev_err(dev, "Failed to ioremap cec: %d\n", ret); return ret; }