From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755229AbdLVD16 (ORCPT ); Thu, 21 Dec 2017 22:27:58 -0500 Received: from mga05.intel.com ([192.55.52.43]:9793 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752766AbdLVD1z (ORCPT ); Thu, 21 Dec 2017 22:27:55 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.45,438,1508828400"; d="scan'208";a="160898341" Date: Fri, 22 Dec 2017 09:01:49 +0530 From: Vinod Koul To: Colin King , Greg KH Cc: Sanyog Kale , alsa-devel@alsa-project.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH][next] soundwire: intel: fix missing assignment to ret Message-ID: <20171222033148.GN18649@localhost> References: <20171221233210.8821-1-colin.king@canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171221233210.8821-1-colin.king@canonical.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: 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. Thanks Colin, this looks good to me. Greg, we have this and another patch from Colin, both lgtm. Would you like me to collect these and send to you before merge cycle or apply directly? > > 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