Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp870695pxf; Wed, 7 Apr 2021 13:47:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyGdG43C2WDGucwCLZ8ftZ00cRAonqIbHMaBqiicgkpOFltEkojfY45y04Fpx/NKNbvISUb X-Received: by 2002:a17:906:9906:: with SMTP id zl6mr6018272ejb.365.1617828433213; Wed, 07 Apr 2021 13:47:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617828433; cv=none; d=google.com; s=arc-20160816; b=ds3ZfXyKaTNpWlDromOsdYsrtC2qLnt7ySotgkcV/MbOroiN0c4Zy3yqlqCLjt5YLZ bXfrfiMPyaO1icZX2cWFN7zCvwAAZKJJs/fZ/HClA+qpM/7/JV+RccMxoSfDxLVJYNXI /y8smH51amMbjQp8ATMtP6MTmOgJiRbW2gf9i8Rhz27usN7N8nQ9qAl1Oq//bwvjag1l rEMx3OnjzSAqSDokJwquYiZox8KXXlTUZ9IKT9it+AKlNvp2/Zy0ee80qTUxILBgArGV HxvJT3XlfA3rk4NqNRBrSW4jG6R691xgpXc9UgQES3wLlIBXdRb+HIFrM2YyOM/gDYM7 CnCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=IR074TkzvU7zNf6/7osjxjfKV6dFWILxQgczVOl/Y5g=; b=zXUcE9A5o5B1P/sK6ffBwccQq2IhoHoyCLdDJUIqY2k68lfwwwSegwZIsw+QVSq69q itRkpR4jsUJ7gpx8CfPJuiI5m8WZXceCCaTL9QTnwlGdd/cIyzzsCMlbCWc0UBSk7TIi B1/ZSPTZiFU1UQO5at5SBsIODKkRu7ZIqMVGcRfyn2iG4mQ60IqX65Ie8ToMHoZDr9z0 EByHJIOvYyjQ5Upa/ZoFGauv5SWI1FYOKigw+Ag5LRkGWzIEzwFu1ni/LiNAxvojWV6Q CqMOBxarggOac24q25v+MEAqGqNs98ec/I9fjshJqUvEzo5QkG8xwM1n/ybPinSS7sHH PdIg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dn4si2643348ejc.235.2021.04.07.13.46.49; Wed, 07 Apr 2021 13:47:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350549AbhDGKD4 (ORCPT + 99 others); Wed, 7 Apr 2021 06:03:56 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:16010 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350497AbhDGKDN (ORCPT ); Wed, 7 Apr 2021 06:03:13 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4FFfyk2k0DzPnwg; Wed, 7 Apr 2021 18:00:14 +0800 (CST) Received: from localhost.localdomain (10.175.103.91) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.498.0; Wed, 7 Apr 2021 18:02:46 +0800 From: Wei Li To: , Xinliang Liu , "Tian Tao" , David Airlie , Daniel Vetter , Philipp Zabel , Thomas Zimmermann , Maxime Ripard , Laurent Pinchart , Emil Velikov , Sakari Ailus , John Stultz CC: , , , Hulk Robot , Wei Li Subject: [PATCH RESEND -next] drm: kirin: Remove redundant dev_err call in ade_hw_ctx_alloc() Date: Wed, 7 Apr 2021 18:06:10 +0800 Message-ID: <20210407100610.3278802-1-liwei391@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT X-Originating-IP: [10.175.103.91] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There is a error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message. Reported-by: Hulk Robot Signed-off-by: Wei Li --- drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c b/drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c index 6dcf9ec05eec..78a792048c42 100644 --- a/drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c +++ b/drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c @@ -857,10 +857,8 @@ static void *ade_hw_ctx_alloc(struct platform_device *pdev, res = platform_get_resource(pdev, IORESOURCE_MEM, 0); ctx->base = devm_ioremap_resource(dev, res); - if (IS_ERR(ctx->base)) { - DRM_ERROR("failed to remap ade io base\n"); + if (IS_ERR(ctx->base)) return ERR_PTR(-EIO); - } ctx->reset = devm_reset_control_get(dev, NULL); if (IS_ERR(ctx->reset))