Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2794772ybv; Sun, 9 Feb 2020 07:35:34 -0800 (PST) X-Google-Smtp-Source: APXvYqy5piYRRCXbiH+9sFtCAND/WNHihsgr0mJhRqdTYuGHhFWVGtiQxmJ7NB+s/rsYTIGQfqJU X-Received: by 2002:aca:484a:: with SMTP id v71mr8185498oia.39.1581262534522; Sun, 09 Feb 2020 07:35:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581262534; cv=none; d=google.com; s=arc-20160816; b=n+eVVVERODL48vDPRSEDzzbAd+lXSzti6waZcwn615ZOxzscA8cSyC3mpr0JzJuJKh hFnJ85RslJbSWhULi0msHnNEX6WtqD04tdgocttKkI/Jsr17+kQNUzxWADuy9EpRn/GC wf7j/ABLGTsIXRkbZjzmo1rts7pNFy9oiLExiRFcOwCljbh/yWFaTogcj2DKENL450fU sxWBgbScinrFLiiGpbMcvX/BH96Kt+voMM07AVwZevMIf+iDtADZXfk5k4C4KnpzYIx/ ERkZfhpmey5ACQE2Ttt07IxJ8J+f25QzAjdVwCUVsGb1gGBEfA6lIX53BHtRFo5hTFWR ndzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=BDOsj3kwqU403azBAdFbU1f6H6eVxWeEpi5MT9fA09I=; b=ZESfw60metZb+qHkCKhc88pG70a9bfPrhWN/4uDy0VdSECj31rZiBOQcAaq0VJV0nM bGDkfeKGgmAL2nID/PG4bj+cfkc7Jdbw1RzXgCEO5Z1YpNatzT5xJP02kkXb2iUScx2o h+9pSR94cHiQzkUtTCtMfFE0vzW28gWs3O51Q/+YWovxOy03HBpL7WAMYMK5SN0jJp9A IxjggUOrFwZExWb5TTITYpxfWD1p83zcl7To3mSc3Z+j3fL1KAGwDndzV7zvXa2ozk5A yr0mlw9b7CtHS1+MG6c8b3wY0NFC7QiuyYSVT22RMSyrq6uiLMcUNuHsbyj1qPgd2Noy +pzw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w7si3639444otq.250.2020.02.09.07.35.11; Sun, 09 Feb 2020 07:35:34 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727742AbgBIPe6 (ORCPT + 99 others); Sun, 9 Feb 2020 10:34:58 -0500 Received: from mga09.intel.com ([134.134.136.24]:17402 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727661AbgBIPe6 (ORCPT ); Sun, 9 Feb 2020 10:34:58 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Feb 2020 07:34:57 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,421,1574150400"; d="scan'208";a="226964306" Received: from crojewsk-mobl1.ger.corp.intel.com (HELO [10.251.86.168]) ([10.251.86.168]) by fmsmga008.fm.intel.com with ESMTP; 09 Feb 2020 07:34:52 -0800 Subject: Re: [PATCH] ASoC: Intel: mrfld: return error codes when an error occurs To: Colin King Cc: Pierre-Louis Bossart , Liam Girdwood , Jie Yang , Mark Brown , Jaroslav Kysela , Takashi Iwai , Vinod Koul , "Subhransu S . Prusty" , alsa-devel@alsa-project.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org References: <20200208220720.36657-1-colin.king@canonical.com> From: Cezary Rojewski Message-ID: <5622cdca-c17b-c0d8-8dbc-4616449877d2@intel.com> Date: Sun, 9 Feb 2020 16:34:50 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.1 MIME-Version: 1.0 In-Reply-To: <20200208220720.36657-1-colin.king@canonical.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-02-08 23:07, Colin King wrote: > From: Colin Ian King > > Currently function sst_platform_get_resources always returns zero and > error return codes set by the function are never returned. Fix this > by returning the error return code in variable ret rather than the > hard coded zero. > > Addresses-Coverity: ("Unused value") > Fixes: f533a035e4da ("ASoC: Intel: mrfld - create separate module for pci part") > Signed-off-by: Colin Ian King > --- > sound/soc/intel/atom/sst/sst_pci.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/sound/soc/intel/atom/sst/sst_pci.c b/sound/soc/intel/atom/sst/sst_pci.c > index d952719bc098..5862fe968083 100644 > --- a/sound/soc/intel/atom/sst/sst_pci.c > +++ b/sound/soc/intel/atom/sst/sst_pci.c > @@ -99,7 +99,7 @@ static int sst_platform_get_resources(struct intel_sst_drv *ctx) > dev_dbg(ctx->dev, "DRAM Ptr %p\n", ctx->dram); > do_release_regions: > pci_release_regions(pci); > - return 0; > + return ret; > } > > /* > Thank you for the fix. Acked-by: Cezary Rojewski