Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp957152pxb; Wed, 3 Mar 2021 22:29:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJwRuVlZqo//d8gtu8weHcwfQClBeqM85O87I0cns2Dvw1s8/qZIgqsYgdRAVVGRjfty9ERD X-Received: by 2002:a17:906:a944:: with SMTP id hh4mr2495075ejb.479.1614839345499; Wed, 03 Mar 2021 22:29:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614839345; cv=none; d=google.com; s=arc-20160816; b=MipCWoOrg65oKECTTzozfZWpiu+ydnI2i997OZIEgpF0M6Yh4cXh1Wx4IIkUc9IO9W PFKIGqqAxBRXngO7eH9OtoH3D/lYjx02dZQdMF+RLlr0GAqrkG8RtPt/lEEwbzMcX/NI /VL0JM2i4/9hyUYPjgI8OPAqCH6LC28ATgE913F75gcecLjkS14GCnFtYNv2l61l/68Z Fbo7VuBif9BhvE6/jhGbszKhoIOHOnyIeVJGsuatavfeumMKrmyNDsWAfGNmnj4SBR3s XYdNWB7LYwU3O83Maws3lDGoskJ8i19aqrle9SXCWShq7gsofvxUEaaQ/perFQHk9/UL eszA== 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 :references:in-reply-to:message-id:cc:to:subject:from:date; bh=p99w0RkkWTwiwfU4gmNTk8ZSlOu3SKJgpQpROVbvygc=; b=MM1Joue+6NmuG44Neko4MCwKaXqxswdJFtkzNPA0lOrZ7NsbeTYqTzaVMbFQpZa/gH PXHtRpkBx07ZN8dmNjAIcBcLxXFqoKz9byETjUb9wqsoLzVSKyml07AtnyZ9fxVQb2wo NPVm0FRU1+QEqpNncx35zrgkrrDKYE15nuVxsayzJs/FA+Bm4dabjzdQwiP/8CGyg8S8 ejVQEmoxZD+UE8uTGpaZs+0R7qOuhJsMBWp9G6TB/Ki7KueZocj1ymKTBd+YJD8DTAqo xIzcVgaQ+3fJSu8PAZIoiHTnj7/NKrJJHBS8jTm4YojRImlkCiMqxKXbqlhbft+cNDMV 6KgQ== 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=crapouillou.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k7si17665394ejs.165.2021.03.03.22.28.43; Wed, 03 Mar 2021 22:29:05 -0800 (PST) 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=crapouillou.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1839678AbhCBQhq convert rfc822-to-8bit (ORCPT + 99 others); Tue, 2 Mar 2021 11:37:46 -0500 Received: from aposti.net ([89.234.176.197]:60046 "EHLO aposti.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1448163AbhCBORc (ORCPT ); Tue, 2 Mar 2021 09:17:32 -0500 Date: Tue, 02 Mar 2021 14:16:26 +0000 From: Paul Cercueil Subject: Re: [PATCH v2] ASoC: codec: Omit superfluous error message in jz4760_codec_probe() To: Tang Bin Cc: broonie@kernel.org, lgirdwood@gmail.com, perex@perex.cz, tiwai@suse.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Message-Id: In-Reply-To: <20210302135630.11456-1-tangbin@cmss.chinamobile.com> References: <20210302135630.11456-1-tangbin@cmss.chinamobile.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le mar. 2 mars 2021 ? 21:56, Tang Bin a ?crit : > The function devm_platform_ioremap_resource has already contained > error message, so remove the redundant dev_err here. > > Signed-off-by: Tang Bin Acked-by: Paul Cercueil Thanks! Cheers, -Paul > --- > Changes from v1 > - to streamline the code. > --- > sound/soc/codecs/jz4760.c | 7 ++----- > 1 file changed, 2 insertions(+), 5 deletions(-) > > diff --git a/sound/soc/codecs/jz4760.c b/sound/soc/codecs/jz4760.c > index e8f28ccc145a..5ae0e312bcfc 100644 > --- a/sound/soc/codecs/jz4760.c > +++ b/sound/soc/codecs/jz4760.c > @@ -841,11 +841,8 @@ static int jz4760_codec_probe(struct > platform_device *pdev) > codec->dev = dev; > > codec->base = devm_platform_ioremap_resource(pdev, 0); > - if (IS_ERR(codec->base)) { > - ret = PTR_ERR(codec->base); > - dev_err(dev, "Failed to ioremap mmio memory: %d\n", ret); > - return ret; > - } > + if (IS_ERR(codec->base)) > + return PTR_ERR(codec->base); > > codec->regmap = devm_regmap_init(dev, NULL, codec, > &jz4760_codec_regmap_config); > -- > 2.18.2 > > >