From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vinod Koul Date: Fri, 22 Dec 2017 12:54:40 +0000 Subject: Re: [PATCH][next] soundwire: intel: fix missing assignment to ret Message-Id: <20171222124239.GX18649@localhost> List-Id: References: <20171221233210.8821-1-colin.king@canonical.com> In-Reply-To: <20171221233210.8821-1-colin.king@canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Colin King Cc: Sanyog Kale , alsa-devel@alsa-project.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org On Thu, Dec 21, 2017 at 11:32:10PM +0000, Colin King wrote: > From: Colin Ian King > > Currently the return status ret is being checked but it has not been > updated since the previous check on ret. It appears that assignment of > ret from return status of the call to sdw_cdns_enable_interrupt was > accidentally ommited. Fix this. Applied, thanks > > Detected by CoverityScan, CID#1463148 ("Logically dead code") > > Fixes: 71bb8a1b059e ("soundwire: intel: Add Intel Master driver") > Signed-off-by: Colin Ian King > --- > drivers/soundwire/intel.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/soundwire/intel.c b/drivers/soundwire/intel.c > index 6a9177ea6eb9..86a7bd1fc912 100644 > --- a/drivers/soundwire/intel.c > +++ b/drivers/soundwire/intel.c > @@ -295,7 +295,7 @@ static int intel_probe(struct platform_device *pdev) > if (ret) > goto err_init; > > - sdw_cdns_enable_interrupt(&sdw->cdns); > + ret = sdw_cdns_enable_interrupt(&sdw->cdns); > if (ret) > goto err_init; > > -- > 2.14.1 > -- ~Vinod