Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1111950pxf; Fri, 2 Apr 2021 01:16:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz1W1gbo0UVg3iT3/+CbD++2hM33zfLXIkaR4txTbjnAFF3gKwp09NNc/efhOtT3EVWdikf X-Received: by 2002:a05:6e02:80a:: with SMTP id u10mr10234402ilm.221.1617351409945; Fri, 02 Apr 2021 01:16:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617351409; cv=none; d=google.com; s=arc-20160816; b=ic78xZecJtB5fdVLiTqs8wPWjyqqnsZewrYTZw4a3Iq8eygdIa24JMJPgg55KHl2hG NTWUi7t3r9ESmVFYAY8tHsrjoztk0grw45+8S9l/tbxfFlkNEda3/VOsxxa8SCpBUKe3 3hgcPpzGeBa7qndBqmhQK/kkt5rcDUVxqv3VT/IkVQClwzCY3ZXDhRZaD5TRcyiZJND3 YoDVssN7qRKUOd8P7F69jnHGSnTwSdnUkcEw9yHGVejRf3MEwD2bhnPrFhY/DNGNQLeZ EyZBfkG+w9BCOasYpevSBfwjZOLj1LKmNybnz2H0HtkSzY47805FaU0avCqJ3Ph/xwy2 E0Cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=o5OsD0dIT4mdLwSiySYzL5mU5U1vDdtWdogi7i01ygQ=; b=QeJ7sg9oFUZyqnIGkVyuSa7fBT/lf5DJoOuYWvYU/5P7eclOIqdnG4rVI3UcWROu3o NMFcPAiGEEUBp748FmV5mV1Jc06NtSE8aVkL7dcDJ/dafU/zEubWroJlOS5VseODgElW sc5kbWGwRz4IDNzGguRJKUrn2bXFvYPeu4h6zpZzFx0nCNX2P5/kdlwmxZFajVU83V1Z IZYTIWfU5HqhN3L9c3MZQBBReQ8ihxfDhogJIaWv15cgiZQ5r4McC/Cn7qlpIqkXbh5u vtARtz3yGtYvmWmrAn7cawDRyAsUOX6kF0UHNcXpoPFGghG0eO/VZvXO0aKRig5Cc3tM UKQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=oHHKxvsG; 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=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r11si6907036ilb.116.2021.04.02.01.16.35; Fri, 02 Apr 2021 01:16:49 -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; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=oHHKxvsG; 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=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234404AbhDBIPN (ORCPT + 99 others); Fri, 2 Apr 2021 04:15:13 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:42940 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234265AbhDBIPK (ORCPT ); Fri, 2 Apr 2021 04:15:10 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 131E25ku044178; Thu, 1 Apr 2021 09:02:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1617285725; bh=o5OsD0dIT4mdLwSiySYzL5mU5U1vDdtWdogi7i01ygQ=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=oHHKxvsGGKIR+kJBdmUxvuLkDCh4WheGYYcb1BKn+d8Cak/p3FrGVAa1sJqNF9kgZ cOrLcMTfc8dVKVu2pRlYsgEX+L1KZo/dvweV3PGxLRPXv43KAl3QikzRchgogmFcr1 GCcmzQbTQYoT5PnERItR28Akr+S5ZJRsa4PoH2pk= Received: from DLEE112.ent.ti.com (dlee112.ent.ti.com [157.170.170.23]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 131E255A036088 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 1 Apr 2021 09:02:05 -0500 Received: from DLEE100.ent.ti.com (157.170.170.30) by DLEE112.ent.ti.com (157.170.170.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Thu, 1 Apr 2021 09:02:05 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE100.ent.ti.com (157.170.170.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2 via Frontend Transport; Thu, 1 Apr 2021 09:02:05 -0500 Received: from ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with SMTP id 131E2424090463; Thu, 1 Apr 2021 09:02:04 -0500 Date: Thu, 1 Apr 2021 09:02:04 -0500 From: Benoit Parrot To: Yang Yingliang CC: , , Subject: Re: [PATCH -next] media: ti-vpe: sc: remove redundant dev_err call in sc_create() Message-ID: <20210401140204.bikghitzypf7fraf@ti.com> References: <20210401103015.1555941-1-yangyingliang@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20210401103015.1555941-1-yangyingliang@huawei.com> User-Agent: NeoMutt/20171215 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Yang, Thank you for the patch. Yang Yingliang wrote on Thu [2021-Apr-01 18:30:15 +0800]: > There is an 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: Yang Yingliang > --- > drivers/media/platform/ti-vpe/sc.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/media/platform/ti-vpe/sc.c b/drivers/media/platform/ti-vpe/sc.c > index 98f95082a6fd..0202d278523f 100644 > --- a/drivers/media/platform/ti-vpe/sc.c > +++ b/drivers/media/platform/ti-vpe/sc.c > @@ -294,10 +294,8 @@ struct sc_data *sc_create(struct platform_device *pdev, const char *res_name) > } > > sc->base = devm_ioremap_resource(&pdev->dev, sc->res); > - if (IS_ERR(sc->base)) { > - dev_err(&pdev->dev, "failed to ioremap\n"); > + if (IS_ERR(sc->base)) > return ERR_CAST(sc->base); > - } Reviewed-by: Benoit Parrot > > return sc; > } > -- > 2.25.1 >